sammy786 commited on
Commit
7c080d1
·
verified ·
1 Parent(s): 9c3dc25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
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