Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
drfahlan
/
clinicalberts_test2
like
0
Sleeping
App
Files
Files
Community
7c16f82
clinicalberts_test2
/
app.py
drfahlan
Create app.py
7c16f82
verified
7 months ago
raw
Copy download link
history
blame
No virus
173 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
'sentiment-analysis'
)
text = st.text_area(
'i love you'
)
if
text:
out = pipe(text)
st.json(out)