Spaces:
Runtime error
Runtime error
Download app.py from JuanLastra/TextApp: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/spaces/JuanLastra/TextApp/resolve/main/app.py
- Command line
-
hf download hf://spaces/JuanLastra/TextApp/app.py
-
curl -L -o app.py https://huggingface.co/spaces/JuanLastra/TextApp/resolve/main/app.py
257 Bytes
| import gradio as gr | |
| from transformers import pipeline | |
| sum = pipeline("summarization", model="facebook/bart-large-cnn") | |
| def stuff(text): | |
| return sum(text) | |
| demo = gr.Interface(fn=stuff, inputs="text", outputs="text") | |
| demo.launch() | |
| # done by Juan Lastra |