Reizendretail
commited on
Commit
•
eeb7f4e
1
Parent(s):
c173280
Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -18,8 +18,8 @@ class EndpointHandler():
|
|
18 |
A :obj:`list` | `dict`: will be serialized and returned
|
19 |
"""
|
20 |
# get inputs
|
21 |
-
system_prompt = data.
|
22 |
-
message = data.
|
23 |
conversation = []
|
24 |
conversation.append({"role": "system", "content": system_prompt})
|
25 |
conversation.append({"role": "user", "content": message})
|
|
|
18 |
A :obj:`list` | `dict`: will be serialized and returned
|
19 |
"""
|
20 |
# get inputs
|
21 |
+
system_prompt = data.pop("system_prompt")
|
22 |
+
message = data.pop("message")
|
23 |
conversation = []
|
24 |
conversation.append({"role": "system", "content": system_prompt})
|
25 |
conversation.append({"role": "user", "content": message})
|