Update handler.py
Browse files- 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)
|