WillWEI0103 commited on
Commit
40ed671
·
verified ·
1 Parent(s): 362669d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -16,14 +16,13 @@ def sentiment(summary):
16
  def main():
17
  st.set_page_config(page_title="Your Finance news", page_icon="📰")
18
  st.header("Summarize Your Finance News and Analyze Sentiment")
19
- st.text('Input your Finance news(Max lenth<=3000): ')
20
- text=st.text_input(max_chars=3000)
21
  st.text('Your Finance news: ')
22
  st.write(str(text))
23
 
24
  #Stage 1: Text Summarization
25
  summary = text_summarize(text)
26
- summary = summary[0]['summary_text']
27
  st.text('Processing Finance News Summarization...')
28
  st.write(summary)
29
 
 
16
  def main():
17
  st.set_page_config(page_title="Your Finance news", page_icon="📰")
18
  st.header("Summarize Your Finance News and Analyze Sentiment")
19
+ text=st.text_input('Input your Finance news(Max lenth<=3000): ',max_chars=3000)
20
+
21
  st.text('Your Finance news: ')
22
  st.write(str(text))
23
 
24
  #Stage 1: Text Summarization
25
  summary = text_summarize(text)
 
26
  st.text('Processing Finance News Summarization...')
27
  st.write(summary)
28