radames commited on
Commit
a888eba
1 Parent(s): 152f178

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -0
pipeline.py CHANGED
@@ -43,6 +43,7 @@ class PreTrainedPipeline():
43
  A :obj:`dict`:. The object returned should be a dict like {"feature_vector": [0.6331314444541931,0.8802216053009033,...,-0.7866355180740356,]} containing :
44
  - "feature_vector": A list of floats corresponding to the image embedding.
45
  """
 
46
  parameters = {"mode": "image"}
47
  if isinstance(inputs, str):
48
  # decode base64 image to PIL
 
43
  A :obj:`dict`:. The object returned should be a dict like {"feature_vector": [0.6331314444541931,0.8802216053009033,...,-0.7866355180740356,]} containing :
44
  - "feature_vector": A list of floats corresponding to the image embedding.
45
  """
46
+
47
  parameters = {"mode": "image"}
48
  if isinstance(inputs, str):
49
  # decode base64 image to PIL