moustafa0 commited on
Commit
229801e
1 Parent(s): 58e3c67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()