torileatherman commited on
Commit
33f45c8
1 Parent(s): 169591e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -39,6 +39,7 @@ def article_selection(sentiment):
39
  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.push_to_hub('torileatherman/sample', index=False)
44
  random_headline = random_sample['Headline_string'].iloc[0]
 
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]