ECUiVADE commited on
Commit
f7183fd
1 Parent(s): a1692a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -191,6 +191,7 @@ def generate(prompt, history):
191
  if not isFirstRun:
192
  chat_log_history.append({"user": prompt, "bot": response})
193
  upload_to_google_drive()
 
194
  else:
195
  chat_log_history.append({"user": firstmsg, "bot": reponse})
196
 
@@ -221,7 +222,7 @@ def submit_user_info(name,occupation,yearsofexp,ethnicity,gender,age):
221
  return "Enter ALL the details to start chatting"
222
 
223
  def start_chat_button_fn(agree_status):
224
- global agreed
225
  if agree_status:
226
  agreed = agree_status
227
  chat_log_name = f'chat_log_for_{unique_id}_{datetime.now().strftime("%Y-%m-%d_%H-%M-%S")}.json'
 
191
  if not isFirstRun:
192
  chat_log_history.append({"user": prompt, "bot": response})
193
  upload_to_google_drive()
194
+
195
  else:
196
  chat_log_history.append({"user": firstmsg, "bot": reponse})
197
 
 
222
  return "Enter ALL the details to start chatting"
223
 
224
  def start_chat_button_fn(agree_status):
225
+ global agreed,chat_log_name
226
  if agree_status:
227
  agreed = agree_status
228
  chat_log_name = f'chat_log_for_{unique_id}_{datetime.now().strftime("%Y-%m-%d_%H-%M-%S")}.json'