Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -340,7 +340,7 @@ class SabonzoAgent:
|
|
| 340 |
self.agent_executor = AgentExecutor(agent=self.agent, tools=self.tools, verbose=True, handle_parsing_errors="ERROR: Agent parsing error. Check logs.", max_iterations=7)
|
| 341 |
|
| 342 |
# --- Main Agent Call Method (REVISED ROUTING) ---
|
| 343 |
-
def __call__(self, question: str, task_id: str) -> str:
|
| 344 |
"""Processes a single question, routing based on mapped question number."""
|
| 345 |
q_num_str = TASK_ID_MAP.get(task_id)
|
| 346 |
logging.info(f"--- Starting Task {task_id} (Q{q_num_str or 'Unknown'}) ---")
|
|
|
|
| 340 |
self.agent_executor = AgentExecutor(agent=self.agent, tools=self.tools, verbose=True, handle_parsing_errors="ERROR: Agent parsing error. Check logs.", max_iterations=7)
|
| 341 |
|
| 342 |
# --- Main Agent Call Method (REVISED ROUTING) ---
|
| 343 |
+
def __call__(self, question: str, task_id: str, file_url: str = None) -> str:
|
| 344 |
"""Processes a single question, routing based on mapped question number."""
|
| 345 |
q_num_str = TASK_ID_MAP.get(task_id)
|
| 346 |
logging.info(f"--- Starting Task {task_id} (Q{q_num_str or 'Unknown'}) ---")
|