Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,10 @@ def chat_with_openai(message: str, history: list, temperature: float, max_new_to
|
|
122 |
str: Partial cumulative output from the assistant.
|
123 |
"""
|
124 |
|
125 |
-
conversation =
|
|
|
|
|
|
|
126 |
|
127 |
if not history:
|
128 |
# Initialize with system prompt and assistant confirmation.
|
|
|
122 |
str: Partial cumulative output from the assistant.
|
123 |
"""
|
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:
|
131 |
# Initialize with system prompt and assistant confirmation.
|