Spaces:
Runtime error
Runtime error
| 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() |