amaldevc commited on
Commit
1c1148e
1 Parent(s): 6bca4ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,5 +7,5 @@ def predict(review):
7
  pred = pipe.predict(review)
8
  return pred[0]["label"] + " with score " + str(pred[0]["score"])
9
 
10
- iface = gr.Interface(fn=predict, inputs="text", outputs="text")
11
  iface.launch()
 
7
  pred = pipe.predict(review)
8
  return pred[0]["label"] + " with score " + str(pred[0]["score"])
9
 
10
+ iface = gr.Interface(fn=predict, inputs=gr.Textbox(), outputs=gr.Textbox())
11
  iface.launch()