Kovila
commited on
Commit
·
762e2c4
1
Parent(s):
bbfab4a
sentiment analysis
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ news = financial_news(stock_ticker, start_date, end_date)
|
|
86 |
st.write(news)
|
87 |
|
88 |
st.header('Financial News Sentiment')
|
89 |
-
with st.spinner('
|
90 |
postive, neutral, negative = get_news_sentiment(news)
|
91 |
st.bar_chart(x=['positive', 'neutral', 'negative'], y=[postive, neutral, negative], color=[0,1,2])
|
92 |
|
|
|
86 |
st.write(news)
|
87 |
|
88 |
st.header('Financial News Sentiment')
|
89 |
+
with st.spinner('finbert model getting sentiment...'):
|
90 |
postive, neutral, negative = get_news_sentiment(news)
|
91 |
st.bar_chart(x=['positive', 'neutral', 'negative'], y=[postive, neutral, negative], color=[0,1,2])
|
92 |
|