Update app.py
Browse files
app.py
CHANGED
|
@@ -50,10 +50,14 @@ def predict_sentiment(text):
|
|
| 50 |
# Gradio Interface
|
| 51 |
interface = gr.Interface(
|
| 52 |
fn=predict_sentiment,
|
| 53 |
-
inputs=gr.Textbox(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
outputs=gr.Textbox(label="Prediction"),
|
| 55 |
-
title="Sentiment Analysis
|
| 56 |
-
description="
|
| 57 |
examples=[
|
| 58 |
["I really love this product"],
|
| 59 |
["This is the worst experience ever"],
|
|
@@ -61,4 +65,4 @@ interface = gr.Interface(
|
|
| 61 |
]
|
| 62 |
)
|
| 63 |
|
| 64 |
-
interface.launch()
|
|
|
|
| 50 |
# Gradio Interface
|
| 51 |
interface = gr.Interface(
|
| 52 |
fn=predict_sentiment,
|
| 53 |
+
inputs=gr.Textbox(
|
| 54 |
+
lines=4,
|
| 55 |
+
placeholder="Type your sentence here...",
|
| 56 |
+
label="Text"
|
| 57 |
+
),
|
| 58 |
outputs=gr.Textbox(label="Prediction"),
|
| 59 |
+
title="Sentiment Analysis Application",
|
| 60 |
+
description="Sentiment Analysis Classification using a LSTM DL Model.",
|
| 61 |
examples=[
|
| 62 |
["I really love this product"],
|
| 63 |
["This is the worst experience ever"],
|
|
|
|
| 65 |
]
|
| 66 |
)
|
| 67 |
|
| 68 |
+
interface.launch(debug=True)
|