Spaces:
Sleeping
Sleeping
Update app_web.py
Browse files- app_web.py +4 -2
app_web.py
CHANGED
|
@@ -444,12 +444,14 @@ def render_chat():
|
|
| 444 |
state="complete",
|
| 445 |
)
|
| 446 |
|
|
|
|
|
|
|
| 447 |
# Display the response
|
| 448 |
-
st.markdown(
|
| 449 |
|
| 450 |
# Store assistant message
|
| 451 |
st.session_state.messages.append(
|
| 452 |
-
{"role": "assistant", "content":
|
| 453 |
)
|
| 454 |
|
| 455 |
# Cap message history to prevent unbounded memory growth
|
|
|
|
| 444 |
state="complete",
|
| 445 |
)
|
| 446 |
|
| 447 |
+
final_response = f"{result.get("response", "")}\n\n For additional assistance, please contact the WEAI Helpdesk at IFPRI-WEAI@cgiar.org.\
|
| 448 |
+
Please let me know if there's anything else I can assist you with today."
|
| 449 |
# Display the response
|
| 450 |
+
st.markdown(final_response)
|
| 451 |
|
| 452 |
# Store assistant message
|
| 453 |
st.session_state.messages.append(
|
| 454 |
+
{"role": "assistant", "content": final_response}
|
| 455 |
)
|
| 456 |
|
| 457 |
# Cap message history to prevent unbounded memory growth
|