Spaces:
Runtime error
Runtime error
shripadbhat
commited on
Commit
·
32a276c
1
Parent(s):
fc58175
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,14 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
-
return "Hello " + name + "
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|