Update app.py
Browse files
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['
|
| 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:
|