Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
HimanshuA
/
First
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
First
/
app.py
HimanshuA
Update app.py
4fc6a76
over 2 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
190 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'Enter Your Statement Here'
)
if
text:
out = pipe(text)
st.json(out)