vpcom commited on
Commit
3e16a9f
·
1 Parent(s): e3e2341

fix: use .snapshot_download

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ CURRENT_MODEL_PATH = "./current_model"
7
 
8
  def func(hf_token, repo, revision, target_repo):
9
  print('download the desired model locally ...')
10
- hf_api.hf_hub_download(
11
  repo_id=repo,
12
  revision=revision,
13
  token=hf_token,
 
7
 
8
  def func(hf_token, repo, revision, target_repo):
9
  print('download the desired model locally ...')
10
+ hf_api.snapshot_download(
11
  repo_id=repo,
12
  revision=revision,
13
  token=hf_token,