Update recommender/recommender.py
Browse files
recommender/recommender.py
CHANGED
|
@@ -59,7 +59,7 @@ def recommend_cards_gradio(user_query, preferences, income, cibil, age,
|
|
| 59 |
{},
|
| 60 |
"Card not found"
|
| 61 |
)
|
| 62 |
-
direct_query = convert_to_direct_query_gradio(user_query, preferences)
|
| 63 |
queries = generate_multi_queries(direct_query)
|
| 64 |
|
| 65 |
if cibil < 700 and use_eligibility:
|
|
@@ -75,7 +75,7 @@ def recommend_cards_gradio(user_query, preferences, income, cibil, age,
|
|
| 75 |
user_query, cypher_query, use_eligibility,
|
| 76 |
income, cibil, age,
|
| 77 |
min_joining_fee, max_joining_fee,
|
| 78 |
-
min_annual_fee, max_annual_fee
|
| 79 |
)
|
| 80 |
except Neo4jConnectionError as graph_err:
|
| 81 |
return (
|
|
|
|
| 59 |
{},
|
| 60 |
"Card not found"
|
| 61 |
)
|
| 62 |
+
direct_query,excluded_cards = convert_to_direct_query_gradio(user_query, preferences, all_card_names=all_card_names,feature_list=features)
|
| 63 |
queries = generate_multi_queries(direct_query)
|
| 64 |
|
| 65 |
if cibil < 700 and use_eligibility:
|
|
|
|
| 75 |
user_query, cypher_query, use_eligibility,
|
| 76 |
income, cibil, age,
|
| 77 |
min_joining_fee, max_joining_fee,
|
| 78 |
+
min_annual_fee, max_annual_fee, excluded_cards
|
| 79 |
)
|
| 80 |
except Neo4jConnectionError as graph_err:
|
| 81 |
return (
|