Spaces:
Sleeping
Sleeping
Download app.py from fcarazo/sentiment-analysis: direct link, hf CLI and curl.
- Browser
- Download file 248 Bytes
-
https://huggingface.co/spaces/fcarazo/sentiment-analysis/resolve/main/app.py
- Command line
-
hf download hf://spaces/fcarazo/sentiment-analysis/app.py
-
curl -L -o app.py https://huggingface.co/spaces/fcarazo/sentiment-analysis/resolve/main/app.py
248 Bytes
| import streamlit as st | |
| from transformers import pipeline | |
| st.title("Bienvenido a la app de sentiment analysis!") | |
| pipe = pipeline("sentiment-analysis") | |
| text = st.text_area("Introduce un texto:") | |
| if text: | |
| output = pipe(text) | |
| st.json(output) |