Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Dmitry72
/
myspace1
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
1d80f9d
myspace1
/
app.py
Dmitry72
Create app.py
1d80f9d
over 1 year ago
raw
Copy download link
history
blame
Safe
201 Bytes
import
stramlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_rea(
'введите любой текст'
)
if
text:
out = pipe(text)
st.json(out)