Update pages/1_Earnings_Sentiment_Analysis_π_.py
Browse files
pages/1_Earnings_Sentiment_Analysis_π_.py
CHANGED
@@ -16,6 +16,9 @@ asr_model = load_asr_model(st.session_state.sbox)
|
|
16 |
if "url" not in st.session_state:
|
17 |
st.session_state.url = ''
|
18 |
|
|
|
|
|
|
|
19 |
try:
|
20 |
|
21 |
if st.session_state['url'] is not None or st.session_state['upload'] is not None:
|
@@ -27,6 +30,8 @@ try:
|
|
27 |
earnings_passages = clean_text(results)
|
28 |
|
29 |
st.session_state['earnings_passages'] = earnings_passages
|
|
|
|
|
30 |
|
31 |
earnings_sentiment, earnings_sentences = sentiment_pipe(earnings_passages)
|
32 |
|
|
|
16 |
if "url" not in st.session_state:
|
17 |
st.session_state.url = ''
|
18 |
|
19 |
+
if "title" not in st.session_state:
|
20 |
+
st.session_state.url = ''
|
21 |
+
|
22 |
try:
|
23 |
|
24 |
if st.session_state['url'] is not None or st.session_state['upload'] is not None:
|
|
|
30 |
earnings_passages = clean_text(results)
|
31 |
|
32 |
st.session_state['earnings_passages'] = earnings_passages
|
33 |
+
|
34 |
+
st.session_state['title'] = tite
|
35 |
|
36 |
earnings_sentiment, earnings_sentences = sentiment_pipe(earnings_passages)
|
37 |
|