Config changed for api url

This commit is contained in:
Pünkösd Marcell 2020-09-25 13:02:44 +02:00
parent 005372497c
commit 80a7557467
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ class SoundSender(AbcSender):
"application/json") "application/json")
} }
r = requests.post(config.INPUT_SVC_URL, files=files) r = requests.post(config.API_URL + "/sample", files=files)
logging.info("Content: ", r.content) logging.info("Content: ", r.content)
logging.info("Headers:", r.headers) logging.info("Headers:", r.headers)
r.raise_for_status() r.raise_for_status()

View File

@ -22,4 +22,4 @@ TICK_INTERVAL = int(os.environ.get("TICK_INTERVAL", "3"))
TARGET_NAME = os.environ.get("TARGET_CLASS_NAME") TARGET_NAME = os.environ.get("TARGET_CLASS_NAME")
MODEL_ID = os.environ.get("MODEL_ID") MODEL_ID = os.environ.get("MODEL_ID")
INPUT_SVC_URL = os.environ.get("INPUT_SVC_URL", "http://localhost:8080/sample") API_URL = os.environ.get("API_URL", "http://localhost:8080")