Update app.py
Browse files
app.py
CHANGED
@@ -13,14 +13,14 @@ def main():
|
|
13 |
st.header("Summarize Your Finance News and Analyze Sentiment📰")
|
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('',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")
|
22 |
summary=text_summarize(text)[0]['summary_text']
|
23 |
-
st.text_area('',summary)
|
24 |
|
25 |
#Stage 2: Sentiment Analytics
|
26 |
st.text('Processing Sentiment Analytics...')
|
|
|
13 |
st.header("Summarize Your Finance News and Analyze Sentiment📰")
|
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...')
|
21 |
text_summarize=pipeline("summarization", model="nickmuchi/fb-bart-large-finetuned-trade-the-event-finance-summarizer")
|
22 |
summary=text_summarize(text)[0]['summary_text']
|
23 |
+
st.text_area('Your Finance News Summary',summary,height=30)
|
24 |
|
25 |
#Stage 2: Sentiment Analytics
|
26 |
st.text('Processing Sentiment Analytics...')
|