From e6bd1da778307d83922cdadef4851a3397322e7f Mon Sep 17 00:00:00 2001 From: almaz Date: Thu, 12 Dec 2024 16:12:59 +0100 Subject: [PATCH] set event loop --- train/src/ui/monitoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train/src/ui/monitoring.py b/train/src/ui/monitoring.py index 7299887..1f2af79 100644 --- a/train/src/ui/monitoring.py +++ b/train/src/ui/monitoring.py @@ -402,7 +402,7 @@ def run_benchmark(api: sly.Api, task_id, classes, cfg, state, remote_dir): arch_type=arch_type, ) m._load_model(deploy_params) - # asyncio.set_event_loop(asyncio.new_event_loop()) # fix for the issue with the event loop + asyncio.set_event_loop(asyncio.new_event_loop()) # fix for the issue with the event loop m.serve() import requests