harryab commited on
Commit
86cb207
·
verified ·
1 Parent(s): 582efe7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -30,9 +30,15 @@ def check_missing_info() -> str:
30
  def save_user_response(question: str, answer: str):
31
  """Saves user responses to memory.
32
 
 
 
33
  Args:
34
- question (str): The question asked to the user.
35
- answer (str): The user's response to the question.
 
 
 
 
36
  """
37
  if "marathon time" in question.lower():
38
  if ":" in answer:
 
30
  def save_user_response(question: str, answer: str):
31
  """Saves user responses to memory.
32
 
33
+ This function saves the user's responses to the memory based on the question asked.
34
+
35
  Args:
36
+ question (str): The question asked to the user (e.g., "What is your marathon time?").
37
+ answer (str): The user's response to the question (e.g., "3:30").
38
+
39
+ Example:
40
+ If the question is "What is your marathon time?" and the answer is "3:30",
41
+ the marathon time will be saved to the user's data.
42
  """
43
  if "marathon time" in question.lower():
44
  if ":" in answer: