mirror of
https://github.com/SYSTRAN/faster-whisper.git
synced 2026-01-07 12:44:13 -05:00
Remove "local_dir_use_symlinks" from download_model() (#1389)
* Remove "local_dir_use_symlinks" from download_model() It's deprecated since huggingface_hub v0.23.0 and produce this warning: > /opt/hostedtoolcache/Python/3.9.24/x64/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py:202: UserWarning: The `local_dir_use_symlinks` argument is deprecated and ignored in `snapshot_download`. Downloading to a local directory does not use symlinks anymore. * Bump huggingface_hub requirement to v0.23
This commit is contained in:
@@ -105,7 +105,6 @@ def download_model(
|
||||
|
||||
if output_dir is not None:
|
||||
kwargs["local_dir"] = output_dir
|
||||
kwargs["local_dir_use_symlinks"] = False
|
||||
|
||||
if cache_dir is not None:
|
||||
kwargs["cache_dir"] = cache_dir
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
ctranslate2>=4.0,<5
|
||||
huggingface_hub>=0.21
|
||||
huggingface_hub>=0.23
|
||||
tokenizers>=0.13,<1
|
||||
onnxruntime>=1.14,<2
|
||||
av>=11
|
||||
tqdm
|
||||
tqdm
|
||||
|
||||
Reference in New Issue
Block a user