From b91b04efa094d3c56a3fa66c1d68accede8c51af Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Sun, 30 Jan 2022 12:49:51 +0530 Subject: [PATCH] Change alf url in the example app --- example/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/app.py b/example/app.py index 88c4068..a866072 100644 --- a/example/app.py +++ b/example/app.py @@ -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!' @@ -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', @@ -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': []