Spaces:
Sleeping
Sleeping
File size: 327 Bytes
61c9346 c912d1c |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
with gr.Blocks("Image", "Text", "Text"):
textbox = gr.Textbox(label="Enter your text here")
bttn = gr.Button(label="Submit")
output = gr.Textbox(label="Output")
def submit(input_data):
return input_data + "Submitted"
bttn.click(submit, inputs=[textbox], outputs=[output])
|