Spaces:
Runtime error
Runtime error
File size: 327 Bytes
bb68202 94111f0 58e3c67 bb68202 229801e bb68202 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
from transformers import pipeline
text_summry = pipeline("summarization", model="abdalrahmanshahrour/auto-arabic-summarization")
def summry(input):
output=text_summry(input)
return output[0]['summary_text']
gr.close_all()
demo=gr.Interface(fn=summry,inputs="text",outputs="text")
demo.launch() |