Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ text_summry = pipeline("summarization", model="facebook/bart-large-cnn")
|
|
8 |
|
9 |
def summry(input):
|
10 |
output=text_summry(input)
|
11 |
-
return output
|
12 |
gr.close_all()
|
13 |
demo=gr.Interface(fn=summry,inputs="text",outputs="text")
|
14 |
demo.launch()
|
|
|
8 |
|
9 |
def summry(input):
|
10 |
output=text_summry(input)
|
11 |
+
return output[0]['summary_text']
|
12 |
gr.close_all()
|
13 |
demo=gr.Interface(fn=summry,inputs="text",outputs="text")
|
14 |
demo.launch()
|