Spaces:
Runtime error
Runtime error
Commit
·
a3d5133
1
Parent(s):
2d76902
Update app.py
Browse files
app.py
CHANGED
@@ -8,13 +8,11 @@ fs = project.get_feature_store()
|
|
8 |
|
9 |
dataset_api = project.get_dataset_api()
|
10 |
|
11 |
-
dataset = load_dataset("torileatherman/sentiment_analysis_batch_predictions")
|
12 |
-
predictions_df = pd.DataFrame(dataset
|
13 |
-
predictions_df_url0 = predictions_df['
|
14 |
-
predictions_df_url1 = predictions_df['
|
15 |
-
predictions_df_url2 = predictions_df['
|
16 |
-
|
17 |
-
|
18 |
|
19 |
def article_selection(sentiment):
|
20 |
if sentiment == "Positive":
|
|
|
8 |
|
9 |
dataset_api = project.get_dataset_api()
|
10 |
|
11 |
+
dataset = load_dataset("torileatherman/sentiment_analysis_batch_predictions", split='train')
|
12 |
+
predictions_df = pd.DataFrame(dataset)
|
13 |
+
predictions_df_url0 = predictions_df['Url'].iloc[0]
|
14 |
+
predictions_df_url1 = predictions_df['Url'].iloc[1]
|
15 |
+
predictions_df_url2 = predictions_df['Url'].iloc[2]
|
|
|
|
|
16 |
|
17 |
def article_selection(sentiment):
|
18 |
if sentiment == "Positive":
|