Spaces:
Paused
Paused
Download app.py from Rasleen/Sentiment_analysis: direct link, hf CLI and curl.
- Browser
- Download file 185 Bytes
-
https://huggingface.co/spaces/Rasleen/Sentiment_analysis/resolve/main/app.py
- Command line
-
hf download hf://spaces/Rasleen/Sentiment_analysis/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Rasleen/Sentiment_analysis/resolve/main/app.py
185 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) |