Update mylab/best1.py
Browse files- mylab/best1.py +2 -2
mylab/best1.py
CHANGED
@@ -30,7 +30,7 @@ def run_graph(input_message, history, user_details):
|
|
30 |
"You are a fitness and health assistant. "
|
31 |
"Provide actionable, tailored advice based on the user's personal details and goals. "
|
32 |
"Incorporate BMI and daily caloric needs into your suggestions. "
|
33 |
-
"
|
34 |
)
|
35 |
|
36 |
# Summarize user details
|
@@ -204,7 +204,7 @@ with gr.Blocks() as demo:
|
|
204 |
|
205 |
history.append(("User", message))
|
206 |
if isinstance(response, str):
|
207 |
-
history.append(("FIT.AI", response))
|
208 |
else:
|
209 |
history.append(("FIT.AI", "An unexpected response was received."))
|
210 |
|
|
|
30 |
"You are a fitness and health assistant. "
|
31 |
"Provide actionable, tailored advice based on the user's personal details and goals. "
|
32 |
"Incorporate BMI and daily caloric needs into your suggestions. "
|
33 |
+
"Encourage the user to ask follow-up questions to clarify or explore specific topics further."
|
34 |
)
|
35 |
|
36 |
# Summarize user details
|
|
|
204 |
|
205 |
history.append(("User", message))
|
206 |
if isinstance(response, str):
|
207 |
+
history.append(("FIT.AI", response + "\nWhat other questions can I help with? π"))
|
208 |
else:
|
209 |
history.append(("FIT.AI", "An unexpected response was received."))
|
210 |
|