Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import asyncio
|
3 |
+
|
4 |
+
async def test(x):
|
5 |
+
await asyncio.sleep(5)
|
6 |
+
return x
|
7 |
+
|
8 |
+
with gr.Blocks() as demo:
|
9 |
+
i = gr.Textbox()
|
10 |
+
o = gr.Textbox()
|
11 |
+
i.change(test, i, o)
|
12 |
+
|
13 |
+
demo.launch()
|