Update app.py
Browse files
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.
|
20 |
-
|
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 |
|