thak123 commited on
Commit
5ddd8f2
1 Parent(s): 272a9cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
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