mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 01:35:36 -04:00
chore: use running event loop in async helpers (#821)
This commit is contained in:
@@ -160,7 +160,7 @@ def setup_embedding_routes():
|
||||
_downloading[model_name] = True
|
||||
try:
|
||||
# Run in thread to not block the event loop
|
||||
loop = asyncio.get_event_loop()
|
||||
loop = asyncio.get_running_loop()
|
||||
cache = _cache_dir()
|
||||
await loop.run_in_executor(
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user