Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|