nickmuchi commited on
Commit
6486a17
β€’
1 Parent(s): 112a4cf

Update pages/1_Earnings_Sentiment_Analysis_πŸ“ˆ_.py

Browse files
pages/1_Earnings_Sentiment_Analysis_πŸ“ˆ_.py CHANGED
@@ -11,6 +11,7 @@ st.markdown("## Earnings Sentiment Analysis with FinBert-Tone")
11
 
12
  if st.session_state.url or st.session_state.upload:
13
 
 
14
  results, title = inference(st.session_state.url,st.session_state.upload)
15
 
16
  st.subheader(title)
@@ -22,11 +23,12 @@ if st.session_state.url or st.session_state.upload:
22
 
23
  with open('earnings.txt','r') as f:
24
  earnings_passages = f.read()
25
-
 
26
  earnings_sentiment, earnings_sentences = sentiment_pipe(earnings_passages)
27
 
28
  with st.expander("See Transcribed Earnings Text"):
29
- st.write(f"Number of Sentences: {len(earnings_ssentences)}")
30
 
31
  st.write(earnings_passages)
32
 
 
11
 
12
  if st.session_state.url or st.session_state.upload:
13
 
14
+ @st.experimental_memo(suppress_st_warning=True)
15
  results, title = inference(st.session_state.url,st.session_state.upload)
16
 
17
  st.subheader(title)
 
23
 
24
  with open('earnings.txt','r') as f:
25
  earnings_passages = f.read()
26
+
27
+ @st.experimental_memo(suppress_st_warning=True)
28
  earnings_sentiment, earnings_sentences = sentiment_pipe(earnings_passages)
29
 
30
  with st.expander("See Transcribed Earnings Text"):
31
+ st.write(f"Number of Sentences: {len(earnings_sentences)}")
32
 
33
  st.write(earnings_passages)
34