ECUiVADE commited on
Commit
c988539
·
verified ·
1 Parent(s): 7094ab5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -196,12 +196,11 @@ def generate(prompt, history):
196
  context += response
197
 
198
  print (context)
199
- yield [(prompt,response)]
200
 
201
  else:
202
  output = "Did you forget to enter your Details? Please go to the User Info Tab and Input your data. "
203
- yield [("Please agree to the terms and conditions to start chatting.")]
204
-
205
 
206
  def submit_user_info(name,occupation,yearsofexp,ethnicity,gender,age):
207
  global Name, Occupation,Ethnicity,Gender,Age,chat_log_name,YearsOfExp
 
196
  context += response
197
 
198
  print (context)
199
+ return "", history
200
 
201
  else:
202
  output = "Did you forget to enter your Details? Please go to the User Info Tab and Input your data. "
203
+ return output
 
204
 
205
  def submit_user_info(name,occupation,yearsofexp,ethnicity,gender,age):
206
  global Name, Occupation,Ethnicity,Gender,Age,chat_log_name,YearsOfExp