momo commited on
Commit
fc3a84b
1 Parent(s): e1e5406
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ summarizer = pipeline("summarization", model=model, tokenizer=tokenizer)
13
 
14
  def summarization(News):
15
  result = summarizer(News, min_length=50, max_length=150)
16
- return result["summary_text"]
17
 
18
  if __name__ == '__main__':
19
  app = gr.Interface(
 
13
 
14
  def summarization(News):
15
  result = summarizer(News, min_length=50, max_length=150)
16
+ return result[0]["summary_text"]
17
 
18
  if __name__ == '__main__':
19
  app = gr.Interface(