Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
napoles3d
/
tutorial
like
0
Runtime error
App
Files
Files
Community
4abc565
tutorial
/
app.py
napoles3d
Create app.py
4abc565
about 3 years ago
raw
Copy download link
history
blame
Safe
216 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
st.title(
'Ejemplo en Hugging Face'
)
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'enter some text'
)
if
text:
out = pipe(text)
st.json(out)