mesutdmn commited on
Commit
e765d84
·
verified ·
1 Parent(s): 4c19626

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ pipe = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6")
7
 
8
  def summarize(input):
9
  output = pipe(input)
10
- return output
11
 
12
  gr.close_all()
13
  demo = gr.Interface(fn=summarize, inputs="text", outputs="text")
 
7
 
8
  def summarize(input):
9
  output = pipe(input)
10
+ return output[0]['summary_text']
11
 
12
  gr.close_all()
13
  demo = gr.Interface(fn=summarize, inputs="text", outputs="text")