Paula Leonova commited on
Commit
3b7e91b
1 Parent(s): b82e402

Fix reference to text_input rather than sample_text

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -145,7 +145,7 @@ if submit_button or example_button:
145
  # unsafe_allow_html = True
146
  # )
147
 
148
- topics_ex_text, scores_ex_text = md.classifier_zero(classifier, sequence=example_text, labels=labels, multi_class=True)
149
  plot_dual_bar_chart(topics, scores, topics_ex_text, scores_ex_text)
150
 
151
  data_ex_text = pd.DataFrame({'label': topics_ex_text, 'scores_from_full_text': scores_ex_text})
 
145
  # unsafe_allow_html = True
146
  # )
147
 
148
+ topics_ex_text, scores_ex_text = md.classifier_zero(classifier, sequence=text_input, labels=labels, multi_class=True)
149
  plot_dual_bar_chart(topics, scores, topics_ex_text, scores_ex_text)
150
 
151
  data_ex_text = pd.DataFrame({'label': topics_ex_text, 'scores_from_full_text': scores_ex_text})