radames commited on
Commit
6639c4e
1 Parent(s): 562ec3c

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -52,4 +52,4 @@ class PreTrainedPipeline():
52
  with torch.no_grad():
53
  feature_vector = self.model(image, text, mode=parameters["mode"])[0,0].tolist()
54
  # postprocess the prediction
55
- return {"feature_vector": feature_vector}
 
52
  with torch.no_grad():
53
  feature_vector = self.model(image, text, mode=parameters["mode"])[0,0].tolist()
54
  # postprocess the prediction
55
+ return feature_vector