JoanParanoid commited on
Commit
3f0bdf9
·
verified ·
1 Parent(s): 076e629

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def analyze_financial_news():
31
  if energy_oil_news:
32
  # If there are news related to "Energy | Oil", perform sentiment analysis for each news
33
  for news in energy_oil_news:
34
- text = news["sequence"]
35
  sentiment_results = sentiment_analysis(text)[0]
36
 
37
  # Display the sentiment analysis result for each news
 
31
  if energy_oil_news:
32
  # If there are news related to "Energy | Oil", perform sentiment analysis for each news
33
  for news in energy_oil_news:
34
+ text = news["text"] # Corrected this line
35
  sentiment_results = sentiment_analysis(text)[0]
36
 
37
  # Display the sentiment analysis result for each news