Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,8 @@ def chat(prompt, user_window, pwd_window, past, response, gptModel):
|
|
37 |
f.write(f'{user_window}: {len(response)} chars\n')
|
38 |
with open(dataLogFilePath) as f:
|
39 |
response += '\n' + f.read()
|
40 |
-
except:
|
41 |
-
response += f"\nDATA LOG FAILED, path = {dataLogFilePath}"
|
42 |
return [past, response, None]
|
43 |
else:
|
44 |
return [[], "User name and/or password are incorrect" + '\npwds = ' + ','.join(pwdList) + 'pwd= ' + pwd_window + ' user= '+user_window, prompt]
|
|
|
37 |
f.write(f'{user_window}: {len(response)} chars\n')
|
38 |
with open(dataLogFilePath) as f:
|
39 |
response += '\n' + f.read()
|
40 |
+
except Exception as e:
|
41 |
+
response += f"\nDATA LOG FAILED, path = {dataLogFilePath},\nmsg = {e}"
|
42 |
return [past, response, None]
|
43 |
else:
|
44 |
return [[], "User name and/or password are incorrect" + '\npwds = ' + ','.join(pwdList) + 'pwd= ' + pwd_window + ' user= '+user_window, prompt]
|