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...
4e30f44
demo-app
/
app.py
Compete2
Create app.py
4e30f44
verified
2 months ago
raw
Copy download link
history
blame
Safe
187 Bytes
from
transformer
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))