rajistics commited on
Commit
e839479
1 Parent(s): f9c9210

Updated summarization

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- stext = summarizer(text)
 
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