Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Girgis711
/
demo-app
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
143ab03
demo-app
/
app.py
Girgis711
create
143ab03
about 1 year ago
raw
Copy download link
history
blame
Safe
182 Bytes
import
streamlit
as
st
from
transfomers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'enter some text:'
)
if
text:
out = pipe(text)
st.json(out)