Sulaiman8 commited on
Commit
3b82c3f
·
verified ·
1 Parent(s): cfc76e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -697,10 +697,9 @@ def recommend_cards_gradio(user_query, preferences, income, cibil, age,
697
  matched_features = query_features.intersection(card_features_lookup.get(card_name, set()))
698
  feature_str = ", ".join(matched_features) if matched_features else "None"
699
  card_rows.append([card_name, feature_str, card_desc])
700
-
701
 
702
  card_names = [row[0] for row in card_rows]
703
- card_lookup = {row[0]: row[1] for row in card_rows}
704
  top_card_html = f"""
705
  <div style="
706
  background-color: #fff3e0;
 
697
  matched_features = query_features.intersection(card_features_lookup.get(card_name, set()))
698
  feature_str = ", ".join(matched_features) if matched_features else "None"
699
  card_rows.append([card_name, feature_str, card_desc])
 
700
 
701
  card_names = [row[0] for row in card_rows]
702
+ card_lookup = {row[0]: row[2] for row in card_rows}
703
  top_card_html = f"""
704
  <div style="
705
  background-color: #fff3e0;