shripadbhat commited on
Commit
32a276c
·
1 Parent(s): fc58175

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -1,7 +1,14 @@
1
  import gradio as gr
 
2
 
3
  def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="Enter your question here", outputs="text")
7
- iface.launch()
 
 
 
 
 
 
 
1
  import gradio as gr
2
+ from transformers import pipeline
3
 
4
  def greet(name):
5
+ return "Hello " + name + "!"
6
 
7
+ with gr.Blocks() as demo:
8
+ name = gr.Textbox(label="Enter your question here")
9
+ submit_btn = gr.Button("Submit")
10
+ submit_btn.click(fn=greet, inputs=name)
11
+ #output = gr.Textbox(label="Output Box")
12
+
13
+
14
+ demo.launch()