torileatherman commited on
Commit
dfeb77c
1 Parent(s): 6984e16

Update app.py

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