chanycha commited on
Commit
c912d1c
1 Parent(s): 595aa66
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -1,4 +1,11 @@
1
  import gradio as gr
2
 
3
- iface = gr.Interface.load("huggingface/gpt2")
4
- iface.launch()
 
 
 
 
 
 
 
 
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])