Andrewwwwww commited on
Commit
163e45f
1 Parent(s): c7e8603

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -12,7 +12,7 @@ class EndpointHandler:
12
 
13
  def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
14
  sys_prompt=data["prompt"]
15
- list=data["messeages"]
16
  prompt=f"<|im_start|>system\n{sys_prompt}.<|im_end|>\n"
17
  for item in list:
18
  if item["role"]=="assistant":
 
12
 
13
  def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
14
  sys_prompt=data["prompt"]
15
+ list=data["inputs"]
16
  prompt=f"<|im_start|>system\n{sys_prompt}.<|im_end|>\n"
17
  for item in list:
18
  if item["role"]=="assistant":