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