sammy786 commited on
Commit
ad0980d
Β·
verified Β·
1 Parent(s): 48132a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -18
app.py CHANGED
@@ -569,24 +569,23 @@ def get_recommendation_with_agent(user_id, merchant, category, amount):
569
 
570
  reasoning_bullets = format_reasoning(reasoning)
571
 
572
- output = f"""
573
- ## 🎯 Recommended: **{card_name}**
574
-
575
- | Metric | Value |
576
- |--------|-------|
577
- | πŸ’° **Rewards Earned** | ${rewards_earned:.2f} ({rewards_rate}) |
578
- | πŸ“Š **Confidence** | {confidence*100:.0f}% |
579
- | πŸ“ˆ **Annual Potential** | ${net_benefit:.2f}/year |
580
- | ⭐ **Optimization Score** | {optimization_score}/100 |
581
-
582
- ---
583
-
584
- ### 🧠 Why This Card?
585
-
586
- {reasoning_bullets}
587
-
588
- ---
589
- """
590
 
591
  # Alternatives in compact table format
592
  if alternatives:
 
569
 
570
  reasoning_bullets = format_reasoning(reasoning)
571
 
572
+ output = f"""## 🎯 Recommended: **{card_name}**
573
+
574
+ | Metric | Value |
575
+ |--------|-------|
576
+ | πŸ’° **Rewards Earned** | ${rewards_earned:.2f} ({rewards_rate}) |
577
+ | πŸ“Š **Confidence** | {confidence*100:.0f}% |
578
+ | πŸ“ˆ **Annual Potential** | ${net_benefit:.2f}/year |
579
+ | ⭐ **Optimization Score** | {optimization_score}/100 |
580
+
581
+ ---
582
+
583
+ ### 🧠 Why This Card?
584
+
585
+ {reasoning_bullets}
586
+
587
+ ---
588
+ """
 
589
 
590
  # Alternatives in compact table format
591
  if alternatives: