Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
pavithrav
/
Demo
like
0
Sleeping
App
Files
Files
Community
main
Demo
/
app.py
pavithrav
Update app.py
cb08f5d
about 1 year ago
raw
Copy download link
history
blame
contribute
delete
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)