ECUiVADE commited on
Commit
edbff3a
1 Parent(s): 35685ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -165,12 +165,12 @@ def generate(prompt, history):
165
  # yield response
166
 
167
  history.append((prompt,response))
168
- chat_history.append([prompt, response])
169
  if not isFirstRun:
170
- chat_log_history.append({"user": prompt, "bot": output})
171
  upload_to_google_drive()
172
  else:
173
- chat_log_history.append({"user": firstmsg, "bot": output})
 
174
  context += response
175
 
176
  print (context)
 
165
  # yield response
166
 
167
  history.append((prompt,response))
 
168
  if not isFirstRun:
169
+ chat_log_history.append({"user": prompt, "bot": response})
170
  upload_to_google_drive()
171
  else:
172
+ chat_log_history.append({"user": firstmsg, "bot": reponse})
173
+
174
  context += response
175
 
176
  print (context)