SelmaNajih001 commited on
Commit
ceb3db9
·
verified ·
1 Parent(s): af41ddd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ for i, row in df_to_add.iterrows():
61
 
62
  # Custom sentiment
63
  try:
64
- res = sentiment_pipeline(row['Summary'])[0]
65
  df_to_add.at[i,'Sentiment'] = res['label'].upper().strip()
66
  df_to_add.at[i,'Confidence'] = res['score']
67
  except:
 
61
 
62
  # Custom sentiment
63
  try:
64
+ res = sentiment_pipeline(row['Title'])[0]
65
  df_to_add.at[i,'Sentiment'] = res['label'].upper().strip()
66
  df_to_add.at[i,'Confidence'] = res['score']
67
  except: