Updated addresses of dataset files

#4
Files changed (1) hide show
  1. lila_camera_traps.py +3 -0
lila_camera_traps.py CHANGED
@@ -132,8 +132,11 @@ This data set consists of only camera trap image data sets, whereas the broader
132
 
133
  _HOMEPAGE = "https://huggingface.co/datasets/society-ethics/LILA"
134
 
 
 
135
  _LILA_SAS_URLS = pd.read_csv("https://lila.science/wp-content/uploads/2020/03/lila_sas_urls.txt")
136
  _LILA_SAS_URLS.rename(columns={"# name": "name"}, inplace=True)
 
137
 
138
  _METADATA_BASE_URL = "https://huggingface.co/datasets/NimaBoscarino/LILA/resolve/main/data/"
139
 
 
132
 
133
  _HOMEPAGE = "https://huggingface.co/datasets/society-ethics/LILA"
134
 
135
+ _OLD_BASE_URL = "https://lilablobssc.blob.core.windows.net"
136
+ _NEW_BASE_URL = "https://lilawildlife.blob.core.windows.net/lila-wildlife"
137
  _LILA_SAS_URLS = pd.read_csv("https://lila.science/wp-content/uploads/2020/03/lila_sas_urls.txt")
138
  _LILA_SAS_URLS.rename(columns={"# name": "name"}, inplace=True)
139
+ _LILA_SAS_URLS["image_base_url"] = _LILA_SAS_URLS["image_base_url"].apply(lambda l: l.replace(_OLD_BASE_URL, _NEW_BASE_URL))
140
 
141
  _METADATA_BASE_URL = "https://huggingface.co/datasets/NimaBoscarino/LILA/resolve/main/data/"
142