Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from util import update
|
3 |
+
|
4 |
+
with gr.Blocks() as demo:
|
5 |
+
gr.Markdown("Start typing below and then click **Run** to see the output.")
|
6 |
+
with gr.Row():
|
7 |
+
inp = gr.Textbox(placeholder="What is your name?")
|
8 |
+
out = gr.Textbox()
|
9 |
+
btn = gr.Button("Run")
|
10 |
+
btn.click(fn=update, inputs=inp, outputs=out)
|
11 |
+
|
12 |
+
demo.launch()
|