Update example_usage.py
Browse files- example_usage.py +1 -1
example_usage.py
CHANGED
@@ -14,7 +14,7 @@ class MultimodalRiskBehaviorModel(nn.Module):
|
|
14 |
|
15 |
# Text model using AutoModelForSequenceClassification
|
16 |
self.text_model_name = text_model_name
|
17 |
-
self.text_model = AutoModelForSequenceClassification.from_pretrained(text_model_name, num_labels=
|
18 |
|
19 |
# Visual model (ResNet50)
|
20 |
self.visual_model = models.resnet50(weights=models.ResNet50_Weights.DEFAULT)
|
|
|
14 |
|
15 |
# Text model using AutoModelForSequenceClassification
|
16 |
self.text_model_name = text_model_name
|
17 |
+
self.text_model = AutoModelForSequenceClassification.from_pretrained(text_model_name, num_labels=2)
|
18 |
|
19 |
# Visual model (ResNet50)
|
20 |
self.visual_model = models.resnet50(weights=models.ResNet50_Weights.DEFAULT)
|