Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
smfry010
/
text-to-image
like
1
Runtime error
App
Files
Files
Community
216a8a2
text-to-image
/
app.py
smfry010
Create app.py
986d727
over 1 year ago
raw
Copy download link
history
blame
Safe
183 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)