Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,6 @@ model_list = [
|
|
24 |
"knowhate/HateBERTimbau-yt-tt",
|
25 |
]
|
26 |
|
27 |
-
#pipe = pipeline("text-classification", model="knowhate/HateBERTimbau")
|
28 |
-
#demo = gr.Interface.from_pipeline(pipe)
|
29 |
-
#demo.launch()
|
30 |
-
|
31 |
def predict(text, chosen_model):
|
32 |
|
33 |
# Initialize the pipeline with the chosen model
|
|
|
24 |
"knowhate/HateBERTimbau-yt-tt",
|
25 |
]
|
26 |
|
|
|
|
|
|
|
|
|
27 |
def predict(text, chosen_model):
|
28 |
|
29 |
# Initialize the pipeline with the chosen model
|