vickeee465 commited on
Commit
2c43ece
·
1 Parent(s): 8106682

remove data preparing for piechart

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -215,7 +215,7 @@ def predict_wrapper(text, language):
215
 
216
  figure = plot_emotion_barplot(prepare_heatmap_data(results_heatmap))
217
  heatmap = plot_emotion_heatmap(prepare_heatmap_data(results_heatmap))
218
- piechart = plot_average_emotion_pie(prepare_heatmap_data(results_heatmap))
219
  output_info = f'Prediction was made using the <a href="https://huggingface.co/{model_id}">{model_id}</a> model.'
220
  return results, figure, piechart, heatmap, output_info
221
 
 
215
 
216
  figure = plot_emotion_barplot(prepare_heatmap_data(results_heatmap))
217
  heatmap = plot_emotion_heatmap(prepare_heatmap_data(results_heatmap))
218
+ piechart = plot_average_emotion_pie(results_heatmap)
219
  output_info = f'Prediction was made using the <a href="https://huggingface.co/{model_id}">{model_id}</a> model.'
220
  return results, figure, piechart, heatmap, output_info
221