torileatherman commited on
Commit
a3d5133
·
1 Parent(s): 2d76902

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
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,columns=['Headlines_seq', 'URL','Headline_str','Predictions'])
13
- predictions_df_url0 = predictions_df['URL'].iloc[1]
14
- predictions_df_url1 = predictions_df['URL'].iloc[2]
15
- predictions_df_url2 = predictions_df['URL'].iloc[3]
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":