Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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")
|