Spaces:
Running
Running
Update services/agentic_handlers.py
Browse files
services/agentic_handlers.py
CHANGED
|
@@ -136,7 +136,13 @@ class AgenticHandlers:
|
|
| 136 |
|
| 137 |
report_str = orchestration_output.get('comprehensive_analysis_report', "Nessun report testuale fornito.")
|
| 138 |
if self.report_components.get("agentic_report_display_md"):
|
| 139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
|
| 141 |
actionable_okrs = orchestration_output.get('actionable_okrs_and_tasks')
|
| 142 |
krs_for_ui_selection_list = extract_key_results_for_selection(actionable_okrs)
|
|
|
|
| 136 |
|
| 137 |
report_str = orchestration_output.get('comprehensive_analysis_report', "Nessun report testuale fornito.")
|
| 138 |
if self.report_components.get("agentic_report_display_md"):
|
| 139 |
+
formatted_report = format_report_to_markdown(report_str)
|
| 140 |
+
# Ensure we have a string, not a list
|
| 141 |
+
if isinstance(formatted_report, list):
|
| 142 |
+
formatted_report = "\n".join(formatted_report)
|
| 143 |
+
elif not isinstance(formatted_report, str):
|
| 144 |
+
formatted_report = str(formatted_report)
|
| 145 |
+
report_display_md_update = gr.update(value=formatted_report)
|
| 146 |
|
| 147 |
actionable_okrs = orchestration_output.get('actionable_okrs_and_tasks')
|
| 148 |
krs_for_ui_selection_list = extract_key_results_for_selection(actionable_okrs)
|