Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ else:
|
|
15 |
raise ValueError("HUGGINGFACE_TOKEN environment variable not set.")
|
16 |
|
17 |
# Load the trained model and tokenizer
|
18 |
-
model_name = "
|
19 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
20 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
21 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
15 |
raise ValueError("HUGGINGFACE_TOKEN environment variable not set.")
|
16 |
|
17 |
# Load the trained model and tokenizer
|
18 |
+
model_name = "chaitravi/hate-speech-classifier" # Replace with your actual Hugging Face model repo
|
19 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
20 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
21 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|