abidlabs HF staff commited on
Commit
72b236f
1 Parent(s): 3cf6a96

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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()