Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
anorprogrammer
/
demo-app
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
7c1bcc4
demo-app
/
app.py
anorprogrammer
Create app.py
7c1bcc4
about 2 years ago
raw
Copy download link
history
blame
181 Bytes
import
streamlit
as
st
from
transformers
import
pipline
pipe = pipline(
'sentiment-analysis'
)
text = st.text_area(
'enter some text!'
)
if
text:
out = pipe(text)
st.json(out)