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