Update model_loader.py
Browse files- model_loader.py +1 -1
model_loader.py
CHANGED
|
@@ -7,7 +7,7 @@ def load_model_and_tokenizer():
|
|
| 7 |
Returns the model and tokenizer for use in classification.
|
| 8 |
"""
|
| 9 |
try:
|
| 10 |
-
model_name = "
|
| 11 |
# If the model is local: model_name = "./model"
|
| 12 |
|
| 13 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
|
|
|
| 7 |
Returns the model and tokenizer for use in classification.
|
| 8 |
"""
|
| 9 |
try:
|
| 10 |
+
model_name = "JanviMl/xlm-roberta-toxic-classifier-capstone" # Replace with your model repo ID
|
| 11 |
# If the model is local: model_name = "./model"
|
| 12 |
|
| 13 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|