Updated summarization
Browse files
app.py
CHANGED
@@ -18,7 +18,8 @@ def speech_to_text(speech):
|
|
18 |
##Summarization
|
19 |
summarizer = pipeline("summarization", model="knkarthick/MEETING_SUMMARY")
|
20 |
def summarize_text(text):
|
21 |
-
|
|
|
22 |
return stext
|
23 |
|
24 |
##Fiscal Sentiment
|
|
|
18 |
##Summarization
|
19 |
summarizer = pipeline("summarization", model="knkarthick/MEETING_SUMMARY")
|
20 |
def summarize_text(text):
|
21 |
+
resp = summarizer(text)
|
22 |
+
stext = resp[0]['summary_text']
|
23 |
return stext
|
24 |
|
25 |
##Fiscal Sentiment
|