Simon Riezebos commited on
Commit
9b5d4f4
·
1 Parent(s): 4422bca

Such consistent function arguments...

Browse files
Files changed (1) hide show
  1. app/src/utils.py +3 -1
app/src/utils.py CHANGED
@@ -169,10 +169,12 @@ def get_existing_flood_geojson(product_id):
169
  flood_geojson_group = folium.FeatureGroup(name=product_id)
170
 
171
  hf_api = hf_utils.get_hf_api()
 
172
  geojson_path = hf_api.hf_hub_download(
173
  repo_id="rodekruis/flood-mapping",
174
- path_in_repo=path_in_repo,
175
  repo_type="dataset",
 
176
  )
177
 
178
  with open(geojson_path, "r") as f:
 
169
  flood_geojson_group = folium.FeatureGroup(name=product_id)
170
 
171
  hf_api = hf_utils.get_hf_api()
172
+ subfolder, filename = path_in_repo.split("/")
173
  geojson_path = hf_api.hf_hub_download(
174
  repo_id="rodekruis/flood-mapping",
175
+ filename=filename,
176
  repo_type="dataset",
177
+ subfolder=subfolder,
178
  )
179
 
180
  with open(geojson_path, "r") as f: