Spaces:
Runtime error
Runtime error
Download app.py from rahulmallah/first-app: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/spaces/rahulmallah/first-app/resolve/main/app.py
- Command line
-
hf download hf://spaces/rahulmallah/first-app/app.py
-
curl -L -o app.py https://huggingface.co/spaces/rahulmallah/first-app/resolve/main/app.py
175 Bytes
| import streamlit as st | |
| from transformers import pipeline | |
| pipe = pipeline("sentiment-analysis") | |
| text=st.text_area('Enter the text!") | |
| if text: | |
| out=pipe(text) | |
| st.json(out) |