Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
lyhue1991
/
eat_pytorch_in_20_days
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
56e1407
eat_pytorch_in_20_days
/
app.py
lyhue1991
Update app.py
56e1407
over 2 years ago
raw
Copy download link
history
blame
Safe
217 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
st.title(
'Text Classification'
)
pipe = pipeline(
"text-classification"
)
text = st.text_area(
"Enter some text:"
)
if
text:
out = pipe(text)
st.json(out)