inoki-giskard
commited on
Commit
•
18f1fae
1
Parent(s):
e7aeb95
Show ML worker log
Browse files
app.py
CHANGED
@@ -17,6 +17,7 @@ def run_ml_worker(url, api_key, hf_token):
|
|
17 |
port=parsed_url.port if parsed_url.port else settings.ws_port,
|
18 |
path=parsed_url.path if parsed_url.path and len(parsed_url.path) else settings.ws_path,
|
19 |
)
|
|
|
20 |
ml_worker = MLWorker(False, backend_url, api_key, hf_token)
|
21 |
asyncio.get_event_loop().run_until_complete(ml_worker.start())
|
22 |
return "ML worker finished its work"
|
|
|
17 |
port=parsed_url.port if parsed_url.port else settings.ws_port,
|
18 |
path=parsed_url.path if parsed_url.path and len(parsed_url.path) else settings.ws_path,
|
19 |
)
|
20 |
+
print(f"Starting ML worker for {backend_url}")
|
21 |
ml_worker = MLWorker(False, backend_url, api_key, hf_token)
|
22 |
asyncio.get_event_loop().run_until_complete(ml_worker.start())
|
23 |
return "ML worker finished its work"
|