Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
sujitb/clsearch
sujitb
/
chat
like
0
Sleeping
App
Files
Files
Community
088165e
chat
/
demo.py
sujitb
Rename clqna.py to demo.py
6c204a5
verified
8 months ago
raw
Copy download link
history
blame
Safe
201 Bytes
import
streamlit
as
st
import
transformers
from
transformers
import
pipeline
pipe= pipeline(
'sentiment-analysis'
)
text = st.text_area(
'Enter some text'
)
if
text:
out= pipe(text)
st.json(out)