danielostrow commited on
Commit
3361d72
·
verified ·
1 Parent(s): cf6fbfd

Force download latest model files on startup

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -7,11 +7,11 @@ import re
7
  from datetime import datetime
8
  from huggingface_hub import hf_hub_download
9
 
10
- # Load model from HuggingFace
11
- hf_hub_download(repo_id="danielostrow/c2sentinel", filename="c2sentinel.py", local_dir=".")
12
- hf_hub_download(repo_id="danielostrow/c2sentinel", filename="c2_sentinel.safetensors", local_dir=".")
13
- hf_hub_download(repo_id="danielostrow/c2sentinel", filename="c2_sentinel.json", local_dir=".")
14
- hf_hub_download(repo_id="danielostrow/c2sentinel", filename="normalization_params.npz", local_dir=".")
15
  from c2sentinel import C2Sentinel
16
  sentinel = C2Sentinel.load('c2_sentinel')
17
 
 
7
  from datetime import datetime
8
  from huggingface_hub import hf_hub_download
9
 
10
+ # Load model from HuggingFace (force_download ensures latest version)
11
+ hf_hub_download(repo_id="danielostrow/c2sentinel", filename="c2sentinel.py", local_dir=".", force_download=True)
12
+ hf_hub_download(repo_id="danielostrow/c2sentinel", filename="c2_sentinel.safetensors", local_dir=".", force_download=True)
13
+ hf_hub_download(repo_id="danielostrow/c2sentinel", filename="c2_sentinel.json", local_dir=".", force_download=True)
14
+ hf_hub_download(repo_id="danielostrow/c2sentinel", filename="normalization_params.npz", local_dir=".", force_download=True)
15
  from c2sentinel import C2Sentinel
16
  sentinel = C2Sentinel.load('c2_sentinel')
17