Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Suhaib-27
/
Bootcamp_Asg
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
ffe6886
Bootcamp_Asg
/
test.py
Suhaib-27
Create test.py
0792338
verified
9 months ago
raw
Copy download link
history
blame
Safe
196 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
classifier = pipeline(
"sentiment-analysis"
)
text = st.text_enter(
"Enter your text"
)
if
text :
out = classifier(text)
st.json(out)