ans123 commited on
Commit
9f60b4a
·
verified ·
1 Parent(s): 5bb7226

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- # Prepare messages for the API call
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: