Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
def text_summarize(text):
|
4 |
-
st.text('Processing Finance News Summarization...')
|
5 |
pipe=pipeline("summarization", model="nickmuchi/fb-bart-large-finetuned-trade-the-event-finance-summarizer")
|
6 |
summary = text_summarize(text)[0]['summary_text']
|
7 |
return summary
|
@@ -22,6 +21,7 @@ def main():
|
|
22 |
st.write(str(text))
|
23 |
|
24 |
#Stage 1: Text Summarization
|
|
|
25 |
summary=text_summarize(text)
|
26 |
st.write(summary)
|
27 |
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
def text_summarize(text):
|
|
|
4 |
pipe=pipeline("summarization", model="nickmuchi/fb-bart-large-finetuned-trade-the-event-finance-summarizer")
|
5 |
summary = text_summarize(text)[0]['summary_text']
|
6 |
return summary
|
|
|
21 |
st.write(str(text))
|
22 |
|
23 |
#Stage 1: Text Summarization
|
24 |
+
st.text('Processing Finance News Summarization...')
|
25 |
summary=text_summarize(text)
|
26 |
st.write(summary)
|
27 |
|