Spaces:
Runtime error
Runtime error
Download app.py from ashwindeshpande19/first_try: direct link, hf CLI and curl.
- Browser
- Download file 226 Bytes
-
https://huggingface.co/spaces/ashwindeshpande19/first_try/resolve/main/app.py
- Command line
-
hf download hf://spaces/ashwindeshpande19/first_try/app.py
-
curl -L -o app.py https://huggingface.co/spaces/ashwindeshpande19/first_try/resolve/main/app.py
226 Bytes
| !pip install transformers[sentiment-analysis] | |
| 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) |