torileatherman commited on
Commit
169591e
·
1 Parent(s): aca8d5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def manual_label():
40
  # Selecting random row from batch data
41
  random_sample = predictions_df.sample()
42
  #random_sample.to_csv('/Users/torileatherman/Github/ID2223_scalable_machine_learning/news_articles_sentiment/sample.csv', index=False)
43
- random_sample.save_to_disk('torileatherman/sample', index=False)
44
  random_headline = random_sample['Headline_string'].iloc[0]
45
  random_prediction = random_sample['Prediction'].iloc[0]
46
  return random_headline, random_prediction
 
40
  # Selecting random row from batch data
41
  random_sample = predictions_df.sample()
42
  #random_sample.to_csv('/Users/torileatherman/Github/ID2223_scalable_machine_learning/news_articles_sentiment/sample.csv', index=False)
43
+ random_sample.push_to_hub('torileatherman/sample', index=False)
44
  random_headline = random_sample['Headline_string'].iloc[0]
45
  random_prediction = random_sample['Prediction'].iloc[0]
46
  return random_headline, random_prediction