Download app.py from napoles3d/ejemplo1: direct link, hf CLI and curl.
- Browser
- Download file 219 Bytes
-
https://huggingface.co/spaces/napoles3d/ejemplo1/resolve/main/app.py
- Command line
-
hf download hf://spaces/napoles3d/ejemplo1/app.py
-
curl -L -o app.py https://huggingface.co/spaces/napoles3d/ejemplo1/resolve/main/app.py
219 Bytes
| import streamlit as st | |
| from transformers import pipeline | |
| st.title('Ejemplo en Hugging Face') | |
| pipe = pipeline('sentiment-analysis') | |
| text = st.text_area('enter some text') | |
| if text: | |
| out = pipe(text) | |
| st.json(out) |