torileatherman commited on
Commit
9415939
1 Parent(s): b5c3516

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def article_selection(sentiment):
27
  predictions_df_head1 = predictions['Headlines_string'].iloc[1]
28
  predictions_df_url2 = predictions['Url'].iloc[2]
29
  predictions_df_head2 = predictions['Headlines_string'].iloc[2]
30
- return [[predictions_df_head0, predictions_df_url0], [predictions_df_head1, predictions_df_url1], [predictions_df_head2, predictions_df_url2]
31
  elif sentiment == "Negative":
32
  predictions = negative_preds
33
  predictions_df_url0 = predictions['Url'].iloc[0]
 
27
  predictions_df_head1 = predictions['Headlines_string'].iloc[1]
28
  predictions_df_url2 = predictions['Url'].iloc[2]
29
  predictions_df_head2 = predictions['Headlines_string'].iloc[2]
30
+ return [[predictions_df_head0, predictions_df_url0], [predictions_df_head1, predictions_df_url1], [predictions_df_head2, predictions_df_url2]]
31
  elif sentiment == "Negative":
32
  predictions = negative_preds
33
  predictions_df_url0 = predictions['Url'].iloc[0]