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