Spaces:
Build error
Build error
Download app.py from amrvignesh/1ml: direct link, hf CLI and curl.
- Browser
- Download file 162 Bytes
-
https://huggingface.co/spaces/amrvignesh/1ml/resolve/main/app.py
- Command line
-
hf download hf://spaces/amrvignesh/1ml/app.py
-
curl -L -o app.py https://huggingface.co/spaces/amrvignesh/1ml/resolve/main/app.py
162 Bytes
| import streamlit as st | |
| from transformers import pipeline | |
| p = pipeline('sentiment-analysis') | |
| t = st.text_area('enter text') | |
| if t: | |
| out = p(t) | |
| st.json(out) |