Update app.py
Browse files
app.py
CHANGED
|
@@ -764,6 +764,14 @@ def get_recommendation(
|
|
| 764 |
|
| 765 |
def get_recommendation_with_ai(user_id, merchant, category, amount):
|
| 766 |
"""Get card recommendation with LLM-powered explanation"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 767 |
|
| 768 |
if not merchant or not merchant.strip():
|
| 769 |
return "❌ Please enter a merchant name.", None
|
|
|
|
| 764 |
|
| 765 |
def get_recommendation_with_ai(user_id, merchant, category, amount):
|
| 766 |
"""Get card recommendation with LLM-powered explanation"""
|
| 767 |
+
|
| 768 |
+
print("=" * 80)
|
| 769 |
+
print("🔍 GEMINI DEBUG INFO:")
|
| 770 |
+
print(f" config.USE_GEMINI = {config.USE_GEMINI}")
|
| 771 |
+
print(f" gemini.enabled = {gemini.enabled}")
|
| 772 |
+
print(f" config.GEMINI_API_KEY exists = {bool(config.GEMINI_API_KEY)}")
|
| 773 |
+
print(f" config.GEMINI_MODEL = {config.GEMINI_MODEL}")
|
| 774 |
+
print("=" * 80)
|
| 775 |
|
| 776 |
if not merchant or not merchant.strip():
|
| 777 |
return "❌ Please enter a merchant name.", None
|