Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
#
|
| 1147 |
-
|
| 1148 |
try:
|
| 1149 |
-
|
| 1150 |
-
|
| 1151 |
-
|
|
|
|
|
|
|
|
|
|
| 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()
|