Spaces:
Sleeping
Sleeping
Download app.py from ujaganna/Sentiment_Analysis: direct link, hf CLI and curl.
- Browser
- Download file 197 Bytes
-
https://huggingface.co/spaces/ujaganna/Sentiment_Analysis/resolve/main/app.py
- Command line
-
hf download hf://spaces/ujaganna/Sentiment_Analysis/app.py
-
curl -L -o app.py https://huggingface.co/spaces/ujaganna/Sentiment_Analysis/resolve/main/app.py
197 Bytes
| # my python code | |
| 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) |