samuellimabraz commited on
Commit
1ed7d34
·
unverified ·
1 Parent(s): a5bc561

chore: Update huggingface-hub dependency to version 0.34.3 and add token parameter in model download function

Browse files
Files changed (2) hide show
  1. detector.py +1 -1
  2. requirements.txt +1 -1
detector.py CHANGED
@@ -26,8 +26,8 @@ def download_model():
26
  repo_id=REPO_ID,
27
  filename=FILENAME,
28
  local_dir=MODEL_DIR,
29
- force_download=True,
30
  cache_dir=None,
 
31
  )
32
 
33
  # Move the file to the correct location if it's not there already
 
26
  repo_id=REPO_ID,
27
  filename=FILENAME,
28
  local_dir=MODEL_DIR,
 
29
  cache_dir=None,
30
+ token=os.getenv("HF_TOKEN"),
31
  )
32
 
33
  # Move the file to the correct location if it's not there already
requirements.txt CHANGED
@@ -4,7 +4,7 @@ gradio==5.23.1
4
  gradio_client==1.8.0
5
  anyio==4.8.0
6
  starlette==0.41.3
7
- huggingface-hub==0.29.3
8
  matplotlib==3.10.0
9
  opencv-python-headless==4.10.0.84
10
  pillow==11.1.0
 
4
  gradio_client==1.8.0
5
  anyio==4.8.0
6
  starlette==0.41.3
7
+ huggingface-hub==0.34.3
8
  matplotlib==3.10.0
9
  opencv-python-headless==4.10.0.84
10
  pillow==11.1.0