Update pages/1_Earnings_Sentiment_Analysis_π_.py
Browse files
pages/1_Earnings_Sentiment_Analysis_π_.py
CHANGED
@@ -2,4 +2,14 @@ import streamlit as st
|
|
2 |
|
3 |
st.set_page_config(page_title="Earnings Sentiment Analysis", page_icon="π")
|
4 |
st.sidebar.header("Sentiment Analysis")
|
5 |
-
st.markdown("## Earnings Sentiment Analysis with FinBert-Tone")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
st.set_page_config(page_title="Earnings Sentiment Analysis", page_icon="π")
|
4 |
st.sidebar.header("Sentiment Analysis")
|
5 |
+
st.markdown("## Earnings Sentiment Analysis with FinBert-Tone")
|
6 |
+
|
7 |
+
results, title = inference(url)
|
8 |
+
|
9 |
+
st.subheader(title)
|
10 |
+
|
11 |
+
earnings_passages = results['text']
|
12 |
+
|
13 |
+
with open('earnings.txt','w') as f:
|
14 |
+
f.write(earnings_passages)
|
15 |
+
|