Spaces:
Sleeping
Sleeping
update 3
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
with gr.Blocks(
|
4 |
textbox = gr.Textbox(label="Enter your text here")
|
5 |
bttn = gr.Button()
|
6 |
output = gr.Textbox(label="Output")
|
@@ -9,3 +9,5 @@ with gr.Blocks("Image", "Text", "Text"):
|
|
9 |
return input_data + "Submitted"
|
10 |
|
11 |
bttn.click(submit, inputs=[textbox], outputs=[output])
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
with gr.Blocks() as block:
|
4 |
textbox = gr.Textbox(label="Enter your text here")
|
5 |
bttn = gr.Button()
|
6 |
output = gr.Textbox(label="Output")
|
|
|
9 |
return input_data + "Submitted"
|
10 |
|
11 |
bttn.click(submit, inputs=[textbox], outputs=[output])
|
12 |
+
|
13 |
+
block.launch()
|