Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,14 +35,18 @@ from formulas import PLOT_FORMULAS # Keep this if used by AnalyticsTab
|
|
| 35 |
from features.chatbot.chatbot_prompts import get_initial_insight_prompt_and_suggestions # Pass this
|
| 36 |
from features.chatbot.chatbot_handler import generate_llm_response # Pass this
|
| 37 |
|
| 38 |
-
|
| 39 |
# --- NEW AGENTIC PIPELINE IMPORTS ---
|
| 40 |
try:
|
| 41 |
from run_agentic_pipeline import run_agentic_pipeline_autonomously
|
|
|
|
|
|
|
|
|
|
| 42 |
AGENTIC_MODULES_LOADED = True
|
| 43 |
except:
|
| 44 |
logging.error(f"Could not import agentic pipeline modules: {e}. Tabs 3 and 4 will be disabled.")
|
| 45 |
AGENTIC_MODULES_LOADED = False
|
|
|
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
# --- IMPORT THE NEW ANALYTICS TAB MODULE ---
|
|
|
|
| 35 |
from features.chatbot.chatbot_prompts import get_initial_insight_prompt_and_suggestions # Pass this
|
| 36 |
from features.chatbot.chatbot_handler import generate_llm_response # Pass this
|
| 37 |
|
|
|
|
| 38 |
# --- NEW AGENTIC PIPELINE IMPORTS ---
|
| 39 |
try:
|
| 40 |
from run_agentic_pipeline import run_agentic_pipeline_autonomously
|
| 41 |
+
from ui.insights_ui_generator import (
|
| 42 |
+
format_single_okr_for_display
|
| 43 |
+
)
|
| 44 |
AGENTIC_MODULES_LOADED = True
|
| 45 |
except:
|
| 46 |
logging.error(f"Could not import agentic pipeline modules: {e}. Tabs 3 and 4 will be disabled.")
|
| 47 |
AGENTIC_MODULES_LOADED = False
|
| 48 |
+
def format_single_okr_for_display(okr_data, **kwargs): return "Agentic modules not loaded. OKR display unavailable." # Placeholder
|
| 49 |
+
|
| 50 |
|
| 51 |
|
| 52 |
# --- IMPORT THE NEW ANALYTICS TAB MODULE ---
|