abidlabs HF Staff commited on
Commit
cc5140e
·
verified ·
1 Parent(s): c4d3de8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -1,3 +1,13 @@
1
  import gradio as gr
2
 
3
- gr.Interface(lambda x:x, "text", "text", examples=["hello"]).launch()
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ with gr.Blocks() as demo:
4
+ def f(x):
5
+ return x
6
+
7
+ t = gr.Textbox()
8
+ t2 = gr.Textbox()
9
+
10
+ t.change(f, t, t2)
11
+ e = gr.Examples(["hello"], t, t2, f)
12
+
13
+ demo.launch()