Download app.py from smsddqui/test2: direct link, hf CLI and curl.
- Browser
- Download file 191 Bytes
-
https://huggingface.co/spaces/smsddqui/test2/resolve/main/app.py
- Command line
-
hf download hf://spaces/smsddqui/test2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/smsddqui/test2/resolve/main/app.py
191 Bytes
| import streamlit as st | |
| import transformers | |
| from transformers import pipeline | |
| pipe = pipeline('sentiment-analysis') | |
| text = st.text_area("Enter Text") | |
| if text: | |
| out=pipe(text) | |
| st.json(out) |