Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
RoopeshDuvvi
/
trail
like
0
Running
App
Files
Files
Community
3a2f21e
trail
/
app.py
RoopeshDuvvi
Create app.py
3a2f21e
verified
9 months ago
raw
Copy download link
history
blame
Safe
184 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'Enter some text'
)
if
text:
out = pipe(text)
st.json(out)