hwberry2 commited on
Commit
b5d3f3a
·
1 Parent(s): 9a48a5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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=[{"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"]
 
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"]