Update app.py
Browse files
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 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 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:
|