Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,12 +33,11 @@ def save_user_response(question: str, answer: str):
|
|
| 33 |
This function saves the user's responses to the memory based on the question asked.
|
| 34 |
|
| 35 |
Args:
|
| 36 |
-
question (str):
|
| 37 |
-
answer (str):
|
| 38 |
|
| 39 |
Example:
|
| 40 |
-
|
| 41 |
-
the marathon time will be saved to the user's data.
|
| 42 |
"""
|
| 43 |
if "marathon time" in question.lower():
|
| 44 |
if ":" in answer:
|
|
|
|
| 33 |
This function saves the user's responses to the memory based on the question asked.
|
| 34 |
|
| 35 |
Args:
|
| 36 |
+
question (str): A string representing the question asked to the user. For example, "What is your marathon time?".
|
| 37 |
+
answer (str): A string representing the user's response. For example, "3:30" or "Male".
|
| 38 |
|
| 39 |
Example:
|
| 40 |
+
save_user_response("What is your marathon time?", "3:30")
|
|
|
|
| 41 |
"""
|
| 42 |
if "marathon time" in question.lower():
|
| 43 |
if ":" in answer:
|