Spaces:
Paused
Paused
Download app.py from rajaramesh/demo-app: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/spaces/rajaramesh/demo-app/resolve/main/app.py
- Command line
-
hf download hf://spaces/rajaramesh/demo-app/app.py
-
curl -L -o app.py https://huggingface.co/spaces/rajaramesh/demo-app/resolve/main/app.py
363 Bytes
| import streamlit as st | |
| # from transformers import pipeline | |
| # import os | |
| # os.environ["TRANSFORMERS_CACHE"] = "/tmp/huggingface" | |
| # pipe = pipeline("sentiment-analysis", device=-1) # Forces CPU | |
| # pipe = pipeline("sentiment-analysis") | |
| text=st.text_area("enter something") | |
| if text: | |
| # out=pipe(text) | |
| # st.json(out) | |
| st.write(f"You have entered {text}") |