@@ -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():
The note is not visible to the blocked user.