Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
knowhate
/
portuguese-hate-speech-detection
like
2
Runtime error
App
Files
Files
Community
gilramos
commited on
May 10
Commit
fa9917c
•
1 Parent(s):
ec0ba79
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+7
-0
app.py
ADDED
Viewed
@@ -0,0 +1,7 @@
1
+
import gradio as gr
2
+
from transformers import pipeline
3
+
4
+
pipe = pipeline("text-classification", model="knowhate/HateBERTimbau")
5
+
6
+
demo = gr.Interface.from_pipeline(pipe)
7
+
demo.launch()