m7n commited on
Commit
472254e
·
verified ·
1 Parent(s): 33e7e36

download with requests

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -483,8 +483,18 @@ def setup_mapper():
483
  return mapper
484
 
485
 
486
- !wget https://huggingface.co/datasets/m7n/intermediate_sci_pickle/resolve/main/100k_filtered_OA_sample_cluster_and_positions.pkl
487
- !wget https://huggingface.co/datasets/m7n/intermediate_sci_pickle/resolve/main/umap_mapper_300k_random_OA_specter_2_params.pkl
 
 
 
 
 
 
 
 
 
 
488
 
489
 
490
  basedata_df = setup_basemap_data()
 
483
  return mapper
484
 
485
 
486
+
487
+
488
+ url = "https://huggingface.co/datasets/m7n/intermediate_sci_pickle/resolve/main/100k_filtered_OA_sample_cluster_and_positions.pkl"
489
+ response = requests.get(url)
490
+ with open("100k_filtered_OA_sample_cluster_and_positions.pkl", "wb") as f:
491
+ f.write(response.content)
492
+
493
+ url = "https://huggingface.co/datasets/m7n/intermediate_sci_pickle/resolve/main/umap_mapper_300k_random_OA_specter_2_params.pkl"
494
+ response = requests.get(url)
495
+ with open("umap_mapper_300k_random_OA_specter_2_params.pkl", "wb") as f:
496
+ f.write(response.content)
497
+
498
 
499
 
500
  basedata_df = setup_basemap_data()