andrewluo commited on
Commit
d286efc
1 Parent(s): 5761c76

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -17,6 +17,6 @@ class EndpointHandler():
17
  # get inputs
18
  instruction = data.pop("instruction",data)
19
  text = data.pop("text", data)
20
- inputs = [(s, instruction) for s in text]
21
  embeddings = self.model.encode(inputs)
22
  return embeddings.tolist()
 
17
  # get inputs
18
  instruction = data.pop("instruction",data)
19
  text = data.pop("text", data)
20
+ inputs = [[s, instruction] for s in text]
21
  embeddings = self.model.encode(inputs)
22
  return embeddings.tolist()