Yingxu He
commited on
Commit
•
7e813b1
1
Parent(s):
3c8df2b
Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -42,8 +42,8 @@ class EndpointHandler:
|
|
42 |
|
43 |
# pass inputs with all kwargs in data
|
44 |
if parameters is not None:
|
45 |
-
prediction = self.pipeline.chat(
|
46 |
else:
|
47 |
-
prediction = self.pipeline.chat(
|
48 |
# postprocess the prediction
|
49 |
return prediction.content
|
|
|
42 |
|
43 |
# pass inputs with all kwargs in data
|
44 |
if parameters is not None:
|
45 |
+
prediction = self.pipeline.chat(cpp_messages, **parameters)
|
46 |
else:
|
47 |
+
prediction = self.pipeline.chat(cpp_messages)
|
48 |
# postprocess the prediction
|
49 |
return prediction.content
|