Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
pavithrav
/
Demo
like
0
Sleeping
App
Files
Files
Community
00aff5e
Demo
/
app.py
pavithrav
Create app.py
00aff5e
about 1 year ago
raw
Copy download link
history
blame
Safe
177 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe=pipeline(
'sentiment_analysis'
)
text=st.text_area(
'enter your text'
)
if
text:
result=pipe(text)
st.json(result)