WillWEI0103 commited on
Commit
edd2a0a
·
verified ·
1 Parent(s): 94ab2c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -14,7 +14,7 @@ def main():
14
  text=st.text_input('Input your Finance news(Max lenth<=3000): ',None,max_chars=3000)
15
  if text is not None:
16
 
17
- st.text_area('Your Finance News: ',text,height=50)
18
 
19
  #Stage 1: Text Summarization
20
  st.text('Processing Finance News Summarization...')
@@ -27,8 +27,7 @@ def main():
27
  label = sentiment(summary)
28
  label=dicts[label]
29
 
30
- st.text('The sentiment of finance news is: ')
31
- st.text_area('',label)
32
 
33
  if __name__ == "__main__":
34
  main()
 
14
  text=st.text_input('Input your Finance news(Max lenth<=3000): ',None,max_chars=3000)
15
  if text is not None:
16
 
17
+ st.text_area('Your Finance News: ',text,height=100)
18
 
19
  #Stage 1: Text Summarization
20
  st.text('Processing Finance News Summarization...')
 
27
  label = sentiment(summary)
28
  label=dicts[label]
29
 
30
+ st.text_area('The sentiment of finance news is: ',label)
 
31
 
32
  if __name__ == "__main__":
33
  main()