Hugging Face
Models
Datasets
Spaces
Buckets
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Anki2004
/
sentiment-Analysis
Like
1
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
Anki2004
commited on
Jun 25, 2024
Commit
396269e
·
verified
·
1 Parent(s):
fd9cf18
Update app.py
Browse files
Files changed (1)
hide
show
app.py
+9
-0
app.py
CHANGED
Viewed
@@ -0,0 +1,9 @@
1
+
import streamlit as st
2
+
from transformers import pipeline
3
+
4
+
pipe = pipeline("sentiment-Analysis")
5
+
text = st.text_area("Enter some text")
6
+
if text:
7
+
out = pipe(text)
8
+
st.json(out
9
+
)