Spaces:
Runtime error
Runtime error
import gradio as gr | |
import asyncio | |
async def test(x): | |
await asyncio.sleep(5) | |
return x | |
with gr.Blocks() as demo: | |
i = gr.Textbox() | |
o = gr.Textbox() | |
i.change(test, i, o) | |
demo.launch(enable_queue=False) | |