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