Spaces:
Running
Running
Benjamin Consolvo
commited on
Commit
·
3fd0696
1
Parent(s):
9c621d2
syntax error colon
Browse files
app.py
CHANGED
@@ -147,7 +147,7 @@ class NewsSentiment:
|
|
147 |
sort_by='publishedAt', # <-- fixed argument name
|
148 |
page=1)
|
149 |
compound_score = 0
|
150 |
-
for article in articles['articles'][:5] # Check first 5 articles
|
151 |
# print(f'article= {article}')
|
152 |
score = self.sia.polarity_scores(article['title'])['compound']
|
153 |
compound_score += score
|
|
|
147 |
sort_by='publishedAt', # <-- fixed argument name
|
148 |
page=1)
|
149 |
compound_score = 0
|
150 |
+
for article in articles['articles'][:5]: # Check first 5 articles
|
151 |
# print(f'article= {article}')
|
152 |
score = self.sia.polarity_scores(article['title'])['compound']
|
153 |
compound_score += score
|