Spaces:
Sleeping
Sleeping
Download app.py from ake178178/dedaodemo01: direct link, hf CLI and curl.
- Browser
- Download file 183 Bytes
-
https://huggingface.co/spaces/ake178178/dedaodemo01/resolve/main/app.py
- Command line
-
hf download hf://spaces/ake178178/dedaodemo01/app.py
-
curl -L -o app.py https://huggingface.co/spaces/ake178178/dedaodemo01/resolve/main/app.py
183 Bytes
| import streamlit as st | |
| from transformers import pipeline | |
| pipe = pipeline('sentiment-analysis') | |
| text = st.text_area('请输入文字') | |
| if text: | |
| out = pipe(text) | |
| st.json(out) | |