gabejavitt commited on
Commit
91f06f0
·
verified ·
1 Parent(s): 8ed4c41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -1142,13 +1142,16 @@ Turn 7: final_answer_tool("1.796 trillion")
1142
  return f"AGENT GRAPH ERROR: {e}"
1143
 
1144
 
1145
- # ====================================================
1146
- # --- Global Agent Instantiation ---
1147
-
1148
  try:
1149
- agent = BasicAgent()
1150
- print("✅ Global BasicAgent instantiated successfully.")
1151
- if asr_pipeline is None: print("⚠️ Global ASR Pipeline failed load.")
 
 
 
1152
  except Exception as e:
1153
  print(f"❌ FATAL: Could not instantiate global agent: {e}")
1154
  traceback.print_exc()
 
1142
  return f"AGENT GRAPH ERROR: {e}"
1143
 
1144
 
1145
+ # =============================================================================
1146
+ # GLOBAL AGENT INSTANTIATION
1147
+ # =============================================================================
1148
  try:
1149
+ initialize_rag_components()
1150
+
1151
+ agent = PlanningReflectionAgent()
1152
+ print("✅ Global PlanningReflectionAgent instantiated successfully.")
1153
+ if asr_pipeline is None:
1154
+ print("⚠️ Global ASR Pipeline failed to load.")
1155
  except Exception as e:
1156
  print(f"❌ FATAL: Could not instantiate global agent: {e}")
1157
  traceback.print_exc()