Spaces:
Running
Running
Update run_agentic_pipeline.py
Browse files- run_agentic_pipeline.py +2 -1
run_agentic_pipeline.py
CHANGED
@@ -68,7 +68,8 @@ def load_and_display_agentic_results(token_state: dict, session_cache: dict):
|
|
68 |
if not report_choices:
|
69 |
return initial_updates
|
70 |
|
71 |
-
|
|
|
72 |
latest_report_id = latest_report_series['_id']
|
73 |
|
74 |
report_display_md = format_report_for_display(latest_report_series)
|
|
|
68 |
if not report_choices:
|
69 |
return initial_updates
|
70 |
|
71 |
+
quarterly_reports_df = agentic_df[agentic_df['report_type'] == 'Quarter'].copy()
|
72 |
+
latest_report_series = quarterly_reports_df.iloc[0]
|
73 |
latest_report_id = latest_report_series['_id']
|
74 |
|
75 |
report_display_md = format_report_for_display(latest_report_series)
|