Update app.py
Browse files
app.py
CHANGED
@@ -177,10 +177,10 @@ def generate(prompt, history):
|
|
177 |
|
178 |
context += response
|
179 |
|
180 |
-
return
|
181 |
else:
|
182 |
-
|
183 |
-
return
|
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
|