chanycha commited on
Commit
db8d869
1 Parent(s): 519393f
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,6 +1,6 @@
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()
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()