JoanParanoid commited on
Commit
9455554
·
verified ·
1 Parent(s): 32983b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -31,6 +31,7 @@ def analyze_financial_news():
31
  sentiment_results = sentiment_analysis(text)[0]
32
 
33
  # Display the sentiment analysis result
 
34
  st.write("Sentiment:", sentiment_results["label"])
35
  st.write("Sentiment Score:", sentiment_results["score"])
36
  else:
 
31
  sentiment_results = sentiment_analysis(text)[0]
32
 
33
  # Display the sentiment analysis result
34
+ st.write("This financial news belongs to the 'Energy | Oil' category.")
35
  st.write("Sentiment:", sentiment_results["label"])
36
  st.write("Sentiment Score:", sentiment_results["score"])
37
  else: