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