Spaces:
Build error
Build error
Download app.py from Sbeha001/TestingApp: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/spaces/Sbeha001/TestingApp/resolve/main/app.py
- Command line
-
hf download hf://spaces/Sbeha001/TestingApp/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Sbeha001/TestingApp/resolve/main/app.py
271 Bytes
| import gradio as gr | |
| from transformers import pipeline | |
| sum = pipeline("summarization", model="facebook/bart-large-cnn") | |
| def things(text): | |
| return sum(text) | |
| testing = gr.Interface(fn=things, inputs="text", outputs="text") | |
| testing.launch() | |
| #created by Sebastian Behar |