Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def submit_questionnaire(name, age, location, gender, ethnicity, height, weight,
|
|
42 |
# Function to handle chat
|
43 |
def chat(user_input, messages):
|
44 |
if user_input:
|
45 |
-
#
|
46 |
messages.append({"role": "user", "content": user_input})
|
47 |
|
48 |
try:
|
|
|
42 |
# Function to handle chat
|
43 |
def chat(user_input, messages):
|
44 |
if user_input:
|
45 |
+
# Append user message to the conversation history
|
46 |
messages.append({"role": "user", "content": user_input})
|
47 |
|
48 |
try:
|