| import pandas as pd | |
| from functions.semantic_search import search | |
| def contains_code(crs_codes, code_list): | |
| codes = str(crs_codes).split(';') | |
| return any(code in code_list for code in codes) | |
| def filter_projects(df, crs3_list, crs5_list, sdg_str, country_code_list, orga_code_list, query, model, embeddings, TOP_X_PROJECTS=30): | |
| # Check if filters where not all should be selected are empty |