Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -63,8 +63,8 @@ def chat(prompt, user_window, pwd_window, past, response, gptModel):
|
|
63 |
dataFile = dataDir + user_window + '_log.txt'
|
64 |
with open(dataFile, 'a') as f:
|
65 |
f.write(f'{user_window}: {len(response)}\n')
|
66 |
-
with open(dataFile) as f:
|
67 |
-
response += '\n' + f.read()
|
68 |
except Exception as e:
|
69 |
response += f"\nDATA LOG FAILED, path = {dataFile}\nmsg = {e}"
|
70 |
# response += f'\npPath = {p.absolute()}'
|
|
|
63 |
dataFile = dataDir + user_window + '_log.txt'
|
64 |
with open(dataFile, 'a') as f:
|
65 |
f.write(f'{user_window}: {len(response)}\n')
|
66 |
+
# with open(dataFile) as f:
|
67 |
+
# response += '\n' + f.read()
|
68 |
except Exception as e:
|
69 |
response += f"\nDATA LOG FAILED, path = {dataFile}\nmsg = {e}"
|
70 |
# response += f'\npPath = {p.absolute()}'
|