slyskawa commited on
Commit
55022a8
1 Parent(s): 56b2b58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.inputs.Textbox(lines=2, label="Enter Review"),
18
- gr.inputs.Dropdown(choices=["Logistic Regression", "KNN"], label="Model Type")],
19
- outputs=gr.outputs.Textbox(label="Prediction"),
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