Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Piskovskytom
/
DU_week_5
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
86096f8
DU_week_5
/
app.py
Piskovskytom
Create app.py
86096f8
over 1 year ago
raw
Copy download link
history
blame
Safe
181 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
"text-classification"
)
text = st.text_area(
"enter some text!"
)
if
text:
out = pipe(text)
st.json(out)