Update app.py
Browse files
app.py
CHANGED
|
@@ -219,7 +219,10 @@ with gr.Blocks(title="BERT Sentiment Analyzer", theme=gr.themes.Soft()) as demo:
|
|
| 219 |
["This is not bad at all"],
|
| 220 |
["Pretty good"],
|
| 221 |
],
|
| 222 |
-
inputs=text_input
|
|
|
|
|
|
|
|
|
|
| 223 |
)
|
| 224 |
|
| 225 |
with gr.Column(scale=2):
|
|
|
|
| 219 |
["This is not bad at all"],
|
| 220 |
["Pretty good"],
|
| 221 |
],
|
| 222 |
+
inputs=text_input,
|
| 223 |
+
outputs=[result_output, confidence_plot, predicted_class, status_display],
|
| 224 |
+
fn=analyze_sentiment,
|
| 225 |
+
cache_examples=False
|
| 226 |
)
|
| 227 |
|
| 228 |
with gr.Column(scale=2):
|