Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
deepakc
/
demo-app
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
demo-app
/
app.py
deepakc
Create app.py
ba8f784
over 2 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
184 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'enter some text:'
)
if
text:
out = pipe(text)
st.json(out)