Download app.py from AISYSTENT/AIS: direct link, hf CLI and curl.
- Browser
- Download file 193 Bytes
-
https://huggingface.co/spaces/AISYSTENT/AIS/resolve/main/app.py
- Command line
-
hf download hf://spaces/AISYSTENT/AIS/app.py
-
curl -L -o app.py https://huggingface.co/spaces/AISYSTENT/AIS/resolve/main/app.py
193 Bytes
| import streamlit as st | |
| from transformers import pipeline | |
| pipe=pipeline('sentiment-analysis') | |
| text=st.text.area('enter a text , positive or negative') | |
| if text: | |
| out=pipe(text) | |
| st.json(out) | |