Benjamin Consolvo commited on
Commit
3fd0696
·
1 Parent(s): 9c621d2

syntax error colon

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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