dlflannery commited on
Commit
f01d93f
·
verified ·
1 Parent(s): cc4a887

Update app.py

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