WinterGYC commited on
Commit
53131d6
1 Parent(s): a1c6298

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -28,7 +28,7 @@ class EndpointHandler:
28
  logging.warn("---end---")
29
 
30
  # ignoring parameters! Default to configs in generation_config.json.
31
- messages = [{"role": "user", "content": data}]
32
  response = self.model.chat(self.tokenizer, messages)
33
  logging.warn("---start chat response---")
34
  logging.warn(response)
 
28
  logging.warn("---end---")
29
 
30
  # ignoring parameters! Default to configs in generation_config.json.
31
+ messages = [{"role": "user", "content": data.pop("inputs", data)}]
32
  response = self.model.chat(self.tokenizer, messages)
33
  logging.warn("---start chat response---")
34
  logging.warn(response)