Update app.py
Browse files
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=
|
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.
|
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()
|