PyTorch
Souha-BH commited on
Commit
5e252c5
1 Parent(s): 73ca82a

Update example_usage.py

Browse files
Files changed (1) hide show
  1. 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=1)
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)