Spaces:
Running
Running
| # ui/agentic_report_tab.py | |
| import gradio as gr | |
| def setup_agentic_report_tab(agentic_modules_loaded_flag): | |
| """Sets up the UI components for the Agentic Analysis Report tab.""" | |
| if not agentic_modules_loaded_flag: | |
| gr.Markdown("🔴 **Error:** Agentic pipeline modules could not be loaded. This tab's functionality is disabled.") | |
| return { # Return minimal components if not loaded | |
| "agentic_pipeline_status_md": None, | |
| "agentic_report_display_md": None, | |
| } | |
| gr.Markdown("## 🤖 Comprehensive Analysis Report (AI Generated)") | |
| agentic_pipeline_status_md = gr.Markdown("Stato Pipeline AI (filtro 'Sempre'): In attesa...", visible=True) | |
| gr.Markdown("Questo report è generato da un agente AI con filtro 'Sempre' sui dati disponibili. Rivedi criticamente.") | |
| agentic_report_display_md = gr.Markdown("La pipeline AI si avvierà automaticamente dopo il caricamento iniziale dei dati o dopo una sincronizzazione.") | |
| components = { | |
| "agentic_pipeline_status_md": agentic_pipeline_status_md, | |
| "agentic_report_display_md": agentic_report_display_md, | |
| } | |
| return components | |