ECUiVADE commited on
Commit
627b943
1 Parent(s): afd9646

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -177,10 +177,10 @@ def generate(prompt, history):
177
 
178
  context += response
179
 
180
- return "", history
181
  else:
182
- history.append((prompt, output))
183
- return "", history
184
 
185
  def submit_user_info(name,occupation,yearsofexp,ethnicity,gender,age):
186
  global Name, Occupation,Ethnicity,Gender,Age,chat_log_name,YearsOfExp
 
177
 
178
  context += response
179
 
180
+ return history
181
  else:
182
+ output = "Did you forget to enter your Details? Please go to the User Info Tab and Input your data."
183
+ return [(prompt, output)] # Ensure this is formatted as a list of tuples
184
 
185
  def submit_user_info(name,occupation,yearsofexp,ethnicity,gender,age):
186
  global Name, Occupation,Ethnicity,Gender,Age,chat_log_name,YearsOfExp