Update app.py
Browse files
app.py
CHANGED
@@ -88,8 +88,18 @@ def sentence_prediction(sentence):
|
|
88 |
|
89 |
# demo.launch()
|
90 |
|
91 |
-
gr.Interface(fn=sentence_prediction,inputs="text",outputs="label").launch()
|
92 |
|
93 |
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
|
|
88 |
|
89 |
# demo.launch()
|
90 |
|
91 |
+
# gr.Interface(fn=sentence_prediction,inputs="text",outputs="label").launch()
|
92 |
|
93 |
|
94 |
|
95 |
+
def greet(name):
|
96 |
+
return "Hello " + name + "!"
|
97 |
+
|
98 |
+
demo = gr.Interface(
|
99 |
+
fn=greet,
|
100 |
+
inputs=gr.Textbox(lines=2, placeholder="Name Here..."),
|
101 |
+
outputs="text",
|
102 |
+
)
|
103 |
+
demo.launch()
|
104 |
+
|
105 |
|