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