Skip to content

Commit

Permalink
Change alf url in the example app
Browse files Browse the repository at this point in the history
  • Loading branch information
jayasanka-sack committed Jan 30, 2022
1 parent 2fe8a65 commit b91b04e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import requests
import json

HAR_MANAGER = "http://localhost:5001"
ALF = "http://alf:5001"

app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
Expand Down Expand Up @@ -153,7 +153,7 @@ def recharge_device(device):


def predict(data):
url = HAR_MANAGER + '/predict'
url = ALF + '/predict'
try:
response = requests.post(url, json=data)
socketio.emit('prediction',
Expand All @@ -173,7 +173,7 @@ def test_disconnect():

def send_current_context():
global required_sensors, current_status, frequency, segment_size, counter
url = HAR_MANAGER + '/context'
url = ALF + '/context'
context = {
'goal': current_status['goal'],
'inputs': []
Expand Down

0 comments on commit b91b04e

Please sign in to comment.