Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Compete2
/
demo-app
like
0
Paused
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
ae35b7e
demo-app
/
app.py
Compete2
Update app.py
ae35b7e
verified
2 months ago
raw
Copy download link
history
blame
Safe
188 Bytes
from
transformers
import
pipeline
import
streamlit
as
st
pipe = pipeline(
'sentiment analysis'
)
input_text = st.text_input(
'Enter some text'
)
if
input_text:
st.json(pipe(input_text))