Spaces:
Running
Running
Update app.py
Browse files
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:
|