dlflannery commited on
Commit
e79a666
·
verified ·
1 Parent(s): 36a0aae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -176,12 +176,12 @@ def chat(prompt, user_window, pwd_window, past, response, gptModel):
176
  accessOk = False
177
  for i in range(3):
178
  try:
179
- dataFile = new_func(user)
180
  with open(dataFile, 'a') as f:
181
  m = '4o'
182
  if 'mini' in gptModel:
183
  m = '4omini'
184
- f.write(f'{user}:{tokens_in}/{tokens_out}-{m}\n')
185
  accessOk = True
186
  break
187
  except Exception as e:
 
176
  accessOk = False
177
  for i in range(3):
178
  try:
179
+ dataFile = new_func(user_window)
180
  with open(dataFile, 'a') as f:
181
  m = '4o'
182
  if 'mini' in gptModel:
183
  m = '4omini'
184
+ f.write(f'{user_window}:{tokens_in}/{tokens_out}-{m}\n')
185
  accessOk = True
186
  break
187
  except Exception as e: