ziggycross commited on
Commit
2ba773a
1 Parent(s): 15054f3

Fixed double period bug.

Browse files
Files changed (1) hide show
  1. therapist.py +1 -1
therapist.py CHANGED
@@ -103,7 +103,7 @@ def empath_response(message, next_message):
103
  temperature=1,
104
  max_tokens=30
105
  )
106
- response = response.choices[0].text.strip()
107
  return response
108
 
109
  def generate_response(user, message, empath=True):
 
103
  temperature=1,
104
  max_tokens=30
105
  )
106
+ response = response.choices[0].text.strip().rstrip(".")
107
  return response
108
 
109
  def generate_response(user, message, empath=True):