Update pages/1_Earnings_Sentiment_Analysis_π_.py
Browse files
pages/1_Earnings_Sentiment_Analysis_π_.py
CHANGED
@@ -6,13 +6,11 @@ from functions import *
|
|
6 |
import validators
|
7 |
|
8 |
#st.set_page_config(page_title="Earnings Sentiment Analysis", page_icon="π")
|
9 |
-
asr_model_options = ['base','small']
|
10 |
-
asr_model_name = st.sidebar.selectbox("Whisper Model", options=asr_model_options, key='sbox')
|
11 |
st.sidebar.header("Sentiment Analysis")
|
12 |
st.markdown("## Earnings Sentiment Analysis with FinBert-Tone")
|
13 |
|
14 |
#load whisper model
|
15 |
-
asr_model = load_asr_model(
|
16 |
|
17 |
if "url" not in st.session_state:
|
18 |
st.session_state.url = ''
|
|
|
6 |
import validators
|
7 |
|
8 |
#st.set_page_config(page_title="Earnings Sentiment Analysis", page_icon="π")
|
|
|
|
|
9 |
st.sidebar.header("Sentiment Analysis")
|
10 |
st.markdown("## Earnings Sentiment Analysis with FinBert-Tone")
|
11 |
|
12 |
#load whisper model
|
13 |
+
asr_model = load_asr_model(st.session_state.sbox)
|
14 |
|
15 |
if "url" not in st.session_state:
|
16 |
st.session_state.url = ''
|