BilalS96 commited on
Commit
ce87cd9
Β·
verified Β·
1 Parent(s): cf9241f

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-312.pyc +2 -2
  2. app.py +11 -7
__pycache__/app.cpython-312.pyc CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a4d5a629e7fe3a3e8ba5f1d264c4e7c91a1a73394939ae6dc9be8afad56c2d15
3
- size 133206
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c468a2bd3db88212cf34d715ef43c9e58d24bcfb0c270124b92dcbc64a897bf
3
+ size 133283
app.py CHANGED
@@ -2429,15 +2429,19 @@ def format_results(results: Dict[str, Any]) -> str:
2429
  output.append(f" - {reason}")
2430
  output.append("")
2431
 
2432
- # Agent Execution Path (LangGraph style)
2433
- output.append("### πŸ”„ LangGraph Execution Path")
2434
- output.append("```mermaid")
2435
- output.append("graph LR")
2436
  for i, step in enumerate(results["execution_path"]):
2437
- if i < len(results["execution_path"]) - 1:
2438
- output.append(f" S{i}[{step}] --> S{i+1}")
 
 
 
 
 
2439
  output.append("```")
2440
- output.append(f"**Routing Decision:** `{results.get('routing_decision', 'parallel_analysis')}`\n")
2441
 
2442
  # Executive Summary (from ExplanationAgent)
2443
  if results.get("explanation", {}).get("executive_summary"):
 
2429
  output.append(f" - {reason}")
2430
  output.append("")
2431
 
2432
+ # Agent Execution Path (LangGraph style) - Text format for compatibility
2433
+ output.append("### πŸ”„ LangGraph Execution Path\n")
2434
+ output.append("```")
 
2435
  for i, step in enumerate(results["execution_path"]):
2436
+ prefix = " " * (1 if "->" in step or "β†’" in step else 0)
2437
+ # Clean step for display
2438
+ clean_step = step.replace("β†’", "->")
2439
+ if i == 0:
2440
+ output.append(f"[1] {clean_step}")
2441
+ else:
2442
+ output.append(f"[{i+1}] {clean_step}")
2443
  output.append("```")
2444
+ output.append(f"\n**Routing Decision:** `{results.get('routing_decision', 'parallel_analysis')}`\n")
2445
 
2446
  # Executive Summary (from ExplanationAgent)
2447
  if results.get("explanation", {}).get("executive_summary"):