Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
ake178178
/
TestIda
like
0
Sleeping
App
Files
Files
Community
main
TestIda
/
app.py
ake178178
Create app.py
b323167
verified
4 months ago
raw
Copy download link
history
blame
contribute
delete
No virus
182 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)