Spaces:
Runtime error
Runtime error
torileatherman
commited on
Commit
•
c5274ee
1
Parent(s):
2615a59
Update app.py
Browse files
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_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
|
|
|
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
|