Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ from transformers import pipeline
|
|
4 |
def text_summarize(text):
|
5 |
pipe = pipeline("summarization", model="nickmuchi/fb-bart-large-finetuned-trade-the-event-finance-summarizer")
|
6 |
summary = pipe(text)[0]['summary_text']
|
7 |
-
print(summary)
|
8 |
return summary
|
9 |
|
10 |
def sentiment(summary):
|
|
|
4 |
def text_summarize(text):
|
5 |
pipe = pipeline("summarization", model="nickmuchi/fb-bart-large-finetuned-trade-the-event-finance-summarizer")
|
6 |
summary = pipe(text)[0]['summary_text']
|
|
|
7 |
return summary
|
8 |
|
9 |
def sentiment(summary):
|