DashAI
DashAI copied to clipboard
fix: :bug: Refactor main function and add app_init module because of …
Summary
When training a model, the backend throw this error:
RuntimeError: Task <Task pending name='Task-64' coro=<RequestResponseCycle.run_asgi() running at C:\Users\lucas\python-envs\dashai-dev\lib\site-packages\uvicorn\protocols\http\httptools_impl.py:426> cb=[set.discard()]> got Future <Future pending> attached to a different loop
The changes solve this problem, but when running the backend, it doesnt wait for the timer to open the browser.