Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Anthos23
/
hummus
like
1
Runtime error
App
Files
Files
Community
e7eeaeb
hummus
/
app.py
Anthos23
Create app.py
879a213
almost 3 years ago
raw
Copy download link
history
blame
Safe
188 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'Ciao! Enter your text :)'
)
if
text:
out = pipe(text)
st.json(out)