Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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()
|