WillWEI0103 commited on
Commit
bddad24
·
verified ·
1 Parent(s): aff9d39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,9 +13,9 @@ def main():
13
  st.header("Summarize Your Finance News and Analyze Sentiment")
14
  text=st.text_input('Input your Finance news(Max lenth<=3000): ',max_chars=3000)
15
  if isinstance(text,str):
16
- st.text('Your Finance news: ')
17
- st.write(str(text))
18
-
19
  #Stage 1: Text Summarization
20
  st.text('Processing Finance News Summarization...')
21
  text_summarize=pipeline("summarization", model="nickmuchi/fb-bart-large-finetuned-trade-the-event-finance-summarizer")
 
13
  st.header("Summarize Your Finance News and Analyze Sentiment")
14
  text=st.text_input('Input your Finance news(Max lenth<=3000): ',max_chars=3000)
15
  if isinstance(text,str):
16
+ #st.text('Your Finance news: ')
17
+ st.write('Your Finance news: ',str(text))
18
+ time.sleep(2)
19
  #Stage 1: Text Summarization
20
  st.text('Processing Finance News Summarization...')
21
  text_summarize=pipeline("summarization", model="nickmuchi/fb-bart-large-finetuned-trade-the-event-finance-summarizer")