Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ def predict_sentiment(review, model_type):
|
|
14 |
return result
|
15 |
|
16 |
iface = gr.Interface(fn=predict_sentiment,
|
17 |
-
inputs=[gr.
|
18 |
-
gr.
|
19 |
-
outputs=gr.
|
20 |
title="Sentiment Analysis",
|
21 |
description="Select a model to predict the sentiment of your review.")
|
22 |
|
|
|
14 |
return result
|
15 |
|
16 |
iface = gr.Interface(fn=predict_sentiment,
|
17 |
+
inputs=[gr.Textbox(lines=2, label="Enter Review"),
|
18 |
+
gr.Dropdown(choices=["Logistic Regression", "KNN"], label="Model Type")],
|
19 |
+
outputs=gr.Textbox(label="Prediction"),
|
20 |
title="Sentiment Analysis",
|
21 |
description="Select a model to predict the sentiment of your review.")
|
22 |
|