Yiheng Hu commited on
Commit
b44ea03
1 Parent(s): 25162b9
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -27,4 +27,4 @@ class EndpointHandler():
27
  texts = data.pop("inputs",data)
28
  inputs = self.md_processor(text = texts, padding=True, return_tensors="pt").to(device)
29
  text_feature = self.md_model.get_text_features(**inputs)
30
- return {"feature":text_feature.cpu().numpy()}
 
27
  texts = data.pop("inputs",data)
28
  inputs = self.md_processor(text = texts, padding=True, return_tensors="pt").to(device)
29
  text_feature = self.md_model.get_text_features(**inputs)
30
+ return {"feature":text_feature.cpu().tolist()}