Spaces:
Runtime error
Runtime error
File size: 196 Bytes
72b236f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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()
|