Spaces:
Runtime error
Runtime error
Download app.py from moustafa0/text_summry: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/moustafa0/text_summry/resolve/main/app.py
- Command line
-
hf download hf://spaces/moustafa0/text_summry/app.py
-
curl -L -o app.py https://huggingface.co/spaces/moustafa0/text_summry/resolve/main/app.py
327 Bytes
| 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() |