emanuelaboros commited on
Commit
ec2aa9d
·
1 Parent(s): 47aff3b

testin the trick

Browse files
Files changed (1) hide show
  1. modeling_stacked.py +1 -1
modeling_stacked.py CHANGED
@@ -38,7 +38,7 @@ class SafeFloretWrapper(nn.Module):
38
 
39
  def forward(self, texts):
40
  # Floret expects strings, not tensors
41
- _, predictions = self.model_floret.predict([texts], k=1)
42
  # Convert predictions to tensors for Hugging Face compatibility
43
  return torch.tensor(predictions)
44
 
 
38
 
39
  def forward(self, texts):
40
  # Floret expects strings, not tensors
41
+ _, predictions = self.floret_model.predict([texts], k=1)
42
  # Convert predictions to tensors for Hugging Face compatibility
43
  return torch.tensor(predictions)
44