Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
knowhate
/
portuguese-hate-speech-detection
like
3
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
fa9917c
portuguese-hate-speech-detection
/
app.py
gilramos
Create app.py
fa9917c
verified
11 months ago
raw
Copy download link
history
blame
Safe
180 Bytes
import
gradio
as
gr
from
transformers
import
pipeline
pipe = pipeline(
"text-classification"
, model=
"knowhate/HateBERTimbau"
)
demo = gr.Interface.from_pipeline(pipe)
demo.launch()