Download app.py from msbeigi/NLP-App: direct link, hf CLI and curl.
- Browser
- Download file 223 Bytes
-
https://huggingface.co/spaces/msbeigi/NLP-App/resolve/main/app.py
- Command line
-
hf download hf://spaces/msbeigi/NLP-App/app.py
-
curl -L -o app.py https://huggingface.co/spaces/msbeigi/NLP-App/resolve/main/app.py
223 Bytes
| from transformers import pipeline | |
| import streamlit as st | |
| pipe=pipeline('sentiment-analysis',device=-1) | |
| # classifier('I liked this idea!') | |
| text=st.text_area('enter some text') | |
| if text: | |
| out=pipe(text) | |
| st.json(out) | |