t12e commited on
Commit
41c2439
1 Parent(s): 7bfffff

updated handler.py

Browse files
__pycache__/handler.cpython-310.pyc ADDED
Binary file (926 Bytes). View file
 
handler.py CHANGED
@@ -10,4 +10,10 @@ class EndpointHandler():
10
  document = data.get("document", "")
11
  embedding = self.model.encode([[instruction, document]]).flatten()
12
 
13
- return [{"embedding": embedding}]
 
 
 
 
 
 
 
10
  document = data.get("document", "")
11
  embedding = self.model.encode([[instruction, document]]).flatten()
12
 
13
+ return [
14
+ {
15
+ "embedding": embedding,
16
+ "instruction": instruction,
17
+ "document": document
18
+ }
19
+ ]