Spaces:
Sleeping
Sleeping
feat: include spiritual care message in Gradio app outputs
Browse files
src/interface/simplified_gradio_app.py
CHANGED
|
@@ -703,7 +703,8 @@ Use the **Download Summary** button below to access the complete provider summar
|
|
| 703 |
stats,
|
| 704 |
gr.update(visible=show_provider_panel), # provider_summary_content visibility
|
| 705 |
status_msg, # provider_summary_status content
|
| 706 |
-
gr.update(value=html_content, visible=True) if show_provider_panel else gr.update(visible=False) # provider_summary_display content
|
|
|
|
| 707 |
)
|
| 708 |
|
| 709 |
def handle_clear(session: SimplifiedSessionData):
|
|
@@ -2120,19 +2121,19 @@ Use the **Download Summary** button below to access the complete provider summar
|
|
| 2120 |
example_medical.click(
|
| 2121 |
lambda h, s: send_example_with_stats("I am fine", h, s),
|
| 2122 |
inputs=[chatbot, session_data],
|
| 2123 |
-
outputs=[chatbot, status_box, session_data, msg, conversation_stats, provider_summary_content, provider_summary_status, provider_summary_display]
|
| 2124 |
)
|
| 2125 |
|
| 2126 |
example_wellness.click(
|
| 2127 |
lambda h, s: send_example_with_stats("I'm feeling stressed and overwhelmed lately", h, s),
|
| 2128 |
inputs=[chatbot, session_data],
|
| 2129 |
-
outputs=[chatbot, status_box, session_data, msg, conversation_stats, provider_summary_content, provider_summary_status, provider_summary_display]
|
| 2130 |
)
|
| 2131 |
|
| 2132 |
example_help.click(
|
| 2133 |
lambda h, s: send_example_with_stats("I am currently experiencing an emotional crisis", h, s),
|
| 2134 |
inputs=[chatbot, session_data],
|
| 2135 |
-
outputs=[chatbot, status_box, session_data, msg, conversation_stats, provider_summary_content, provider_summary_status, provider_summary_display]
|
| 2136 |
)
|
| 2137 |
|
| 2138 |
# Conversation logging buttons
|
|
|
|
| 703 |
stats,
|
| 704 |
gr.update(visible=show_provider_panel), # provider_summary_content visibility
|
| 705 |
status_msg, # provider_summary_status content
|
| 706 |
+
gr.update(value=html_content, visible=True) if show_provider_panel else gr.update(visible=False), # provider_summary_display content
|
| 707 |
+
spiritual_care_msg # spiritual_care_message content
|
| 708 |
)
|
| 709 |
|
| 710 |
def handle_clear(session: SimplifiedSessionData):
|
|
|
|
| 2121 |
example_medical.click(
|
| 2122 |
lambda h, s: send_example_with_stats("I am fine", h, s),
|
| 2123 |
inputs=[chatbot, session_data],
|
| 2124 |
+
outputs=[chatbot, status_box, session_data, msg, conversation_stats, provider_summary_content, provider_summary_status, provider_summary_display, spiritual_care_message]
|
| 2125 |
)
|
| 2126 |
|
| 2127 |
example_wellness.click(
|
| 2128 |
lambda h, s: send_example_with_stats("I'm feeling stressed and overwhelmed lately", h, s),
|
| 2129 |
inputs=[chatbot, session_data],
|
| 2130 |
+
outputs=[chatbot, status_box, session_data, msg, conversation_stats, provider_summary_content, provider_summary_status, provider_summary_display, spiritual_care_message]
|
| 2131 |
)
|
| 2132 |
|
| 2133 |
example_help.click(
|
| 2134 |
lambda h, s: send_example_with_stats("I am currently experiencing an emotional crisis", h, s),
|
| 2135 |
inputs=[chatbot, session_data],
|
| 2136 |
+
outputs=[chatbot, status_box, session_data, msg, conversation_stats, provider_summary_content, provider_summary_status, provider_summary_display, spiritual_care_message]
|
| 2137 |
)
|
| 2138 |
|
| 2139 |
# Conversation logging buttons
|