fixed: asyncio.run() cannot be called from a running event loop

This commit is contained in:
harry
2024-03-16 08:55:15 +08:00
parent 8b9ff47cad
commit b5ba1e6b09
4 changed files with 36 additions and 25 deletions

View File

@@ -1,3 +1,4 @@
import asyncio
import sys
import os
from uuid import uuid4
@@ -150,4 +151,4 @@ if start_button:
logger.info("开始生成视频")
tm.start(task_id=task_id, params=cfg)
asyncio.run(tm.start(task_id=task_id, params=cfg))