reedmayhew commited on
Commit
8334664
·
verified ·
1 Parent(s): 61683c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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.