Spaces:
Runtime error
Runtime error
Download app.py from PeerNorback/Sentiment_analysis_demo: direct link, hf CLI and curl.
- Browser
- Download file 183 Bytes
-
https://huggingface.co/spaces/PeerNorback/Sentiment_analysis_demo/resolve/main/app.py
- Command line
-
hf download hf://spaces/PeerNorback/Sentiment_analysis_demo/app.py
-
curl -L -o app.py https://huggingface.co/spaces/PeerNorback/Sentiment_analysis_demo/resolve/main/app.py
183 Bytes
| import streamlit as st | |
| from transformers import pipeline | |
| pipe = pipeline('sentiment-analysis') | |
| text = st.text_area('enter some text!') | |
| if text: | |
| out = pipe(text) | |
| st.json(out) |