Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
ahmedalrashedi
/
demo
like
0
Runtime error
App
Files
Files
Community
dac9003
demo
/
app.py
ahmedalrashedi
Create app.py
dac9003
about 1 year ago
raw
Copy download link
history
blame
No virus
218 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
sentiment_analysis = pipeline(
"sentiment-analysis"
)
text = st.text_input(
"Enter some text"
)
if
text:
result = sentiment_analysis(text)
st.json(result)