annikwag commited on
Commit
540cd3a
·
verified ·
1 Parent(s): 0f39553

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -86,8 +86,8 @@ def compute_title(metadata):
86
 
87
  # Helper function: Get CRS filter options from all documents in the collection
88
  @st.cache_data
89
- def get_crs_options(client, collection_name):
90
- results = hybrid_search(client, "", collection_name)
91
  all_results = results[0] + results[1]
92
  crs_set = set()
93
  for res in all_results:
@@ -99,6 +99,7 @@ def get_crs_options(client, collection_name):
99
  crs_set.add(crs_combined)
100
  return sorted(crs_set)
101
 
 
102
  # Update filter_results to also filter by crs_combined.
103
  def filter_results(results, country_filter, region_filter, end_year_range, crs_filter):
104
  filtered = []
 
86
 
87
  # Helper function: Get CRS filter options from all documents in the collection
88
  @st.cache_data
89
+ def get_crs_options(_client, collection_name):
90
+ results = hybrid_search(_client, "", collection_name)
91
  all_results = results[0] + results[1]
92
  crs_set = set()
93
  for res in all_results:
 
99
  crs_set.add(crs_combined)
100
  return sorted(crs_set)
101
 
102
+
103
  # Update filter_results to also filter by crs_combined.
104
  def filter_results(results, country_filter, region_filter, end_year_range, crs_filter):
105
  filtered = []