Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
onemriganka
/
hello_space
like
1
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
4aa9f7d
hello_space
/
app.py
1Smile
Update app.py
4aa9f7d
almost 2 years ago
raw
Copy download link
history
blame
Safe
173 Bytes
import
streamlit
as
st
from
transformers
import
pipe = pipeline(
"sentiment analysis"
)
text = st.textarea(
"enter some text"
)
if
text:
out = pipe(text)
st.json(out)