Spaces:
Running
Running
Update app.py
Browse files
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(
|
180 |
with open(dataFile, 'a') as f:
|
181 |
m = '4o'
|
182 |
if 'mini' in gptModel:
|
183 |
m = '4omini'
|
184 |
-
f.write(f'{
|
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:
|