Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,10 @@ def botResponse(user_input):
|
|
34 |
response = openai.ChatCompletion.create(
|
35 |
model="gpt-3.5-turbo",
|
36 |
#messages=user_input)
|
37 |
-
messages=[
|
38 |
-
{"role": "
|
|
|
|
|
39 |
)
|
40 |
|
41 |
system_message = response["choices"][0]["message"]["content"]
|
|
|
34 |
response = openai.ChatCompletion.create(
|
35 |
model="gpt-3.5-turbo",
|
36 |
#messages=user_input)
|
37 |
+
messages=[
|
38 |
+
{"role": "system", "content": "You are a therapist. Respond in less than 5 sentences."},
|
39 |
+
{"role": "user", "content": user_input}
|
40 |
+
]
|
41 |
)
|
42 |
|
43 |
system_message = response["choices"][0]["message"]["content"]
|