Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Fancellu
/
streamlit-demo
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
fc1c72e
streamlit-demo
/
app.py
Fancellu
Init
48e7f17
over 1 year ago
raw
Copy download link
history
blame
Safe
221 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
"sentiment-analysis"
)
text = st.text_area(
"Enter your text, we will do sentiment analysis"
)
if
text:
result = pipe(text)
st.json(result)