reedmayhew commited on
Commit
03144a4
·
verified ·
1 Parent(s): 17819c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -124,7 +124,8 @@ def chat_with_openai(message: str, history: list, temperature: float, max_new_to
124
 
125
  conversation = []
126
 
127
- if not history and message.startswith("Start a talk therapy session with me."):
 
128
  fast_mode = True
129
 
130
  if not history:
 
124
 
125
  conversation = []
126
 
127
+ if (not history and message.startswith("Start a talk therapy session with me.")) or \
128
+ any(user_msg.startswith("Start a talk therapy session with me.") for user_msg, _ in history):
129
  fast_mode = True
130
 
131
  if not history: