Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Tharunika1601
/
demo-app
like
0
Sleeping
App
Files
Files
Community
e63a676
demo-app
/
app.py
Tharunika1601
Update app.py
e63a676
verified
10 months ago
raw
Copy download link
history
blame
Safe
213 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
# Add this import statement
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
"Enter some text!"
)
if
text:
out = pipe(text)
st.json(out)