Skip to content

Commit

Permalink
fix(api): remove prefix before downloading for HF hub
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Mar 20, 2023
1 parent 1971226 commit f779fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/convert/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def fetch_model(
# from_pretrained has a bunch of useful logic that snapshot_download by itself down not
if hf_hub_fetch:
return hf_hub_download(
repo_id=source,
repo_id=hub_source,
filename=hf_hub_filename,
cache_dir=cache_path,
force_filename=f"{name}.bin",
Expand Down

0 comments on commit f779fbd

Please sign in to comment.