Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
hiba9
/
demo_app
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
bdf26e5
demo_app
/
app.py
hiba9
Create app.py
bdf26e5
verified
7 months ago
raw
Copy download link
history
blame
Safe
169 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)