Skip to content

Commit

Permalink
Use curl to fetch model only if git lfs is not available (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
asdofindia authored Nov 8, 2023
1 parent 11f2fe3 commit 28793cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fw_dw_hf_wo_lfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
url_pfx="https://huggingface.co/guillaumekln"
function fetch {
git clone "$hf_url" "$WSCRIBE_MODELS_DIR/$model_name"
curl -L "$hf_url/resolve/main/model.bin" -o "$WSCRIBE_MODELS_DIR/$model_name/model.bin"
git lfs pull || curl -L "$hf_url/resolve/main/model.bin" -o "$WSCRIBE_MODELS_DIR/$model_name/model.bin"
}


Expand Down

0 comments on commit 28793cf

Please sign in to comment.