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