torileatherman commited on
Commit
2615a59
1 Parent(s): 33f45c8

Update app.py

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