Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
-
import torch
|
4 |
-
|
5 |
-
# Load model directly
|
6 |
-
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
7 |
|
8 |
def get_hatespeech_score(text):
|
9 |
io = gr.Interface.load("unhcr/hatespeech-detection")
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
|
|
|
|
|
|
|
|
3 |
|
4 |
def get_hatespeech_score(text):
|
5 |
io = gr.Interface.load("unhcr/hatespeech-detection")
|