hamxaameer commited on
Commit
313bbe8
·
verified ·
1 Parent(s): ff04ea8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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):