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