修复串数据问题

This commit is contained in:
puke
2025-10-27 14:56:37 +08:00
committed by puke
parent 4c33068414
commit c19710d5bd

7
web.py
View File

@@ -32,12 +32,7 @@ st.set_page_config(
def run_async(coro):
"""Run async coroutine in sync context"""
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
try:
return loop.run_until_complete(coro)
finally:
loop.close()
return asyncio.run(coro)
def safe_rerun():