Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,6 +36,7 @@ def botResponse(user_input):
|
|
36 |
#messages=user_input)
|
37 |
messages=[{"role": "system", "content": "You are a therapist. Respond in less than 5 sentences."},
|
38 |
{"role": "user", "content": user_input["text"]}]
|
|
|
39 |
|
40 |
system_message = response["choices"][0]["message"]["content"]
|
41 |
#msg_contents.append({"role": "assistant", "content": system_message})
|
|
|
36 |
#messages=user_input)
|
37 |
messages=[{"role": "system", "content": "You are a therapist. Respond in less than 5 sentences."},
|
38 |
{"role": "user", "content": user_input["text"]}]
|
39 |
+
)
|
40 |
|
41 |
system_message = response["choices"][0]["message"]["content"]
|
42 |
#msg_contents.append({"role": "assistant", "content": system_message})
|