Skip to content

Commit cf42429

Browse files
authored
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
1 parent 65882ee commit cf42429

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

faster_whisper/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def download_model(
105105

106106
if output_dir is not None:
107107
kwargs["local_dir"] = output_dir
108-
kwargs["local_dir_use_symlinks"] = False
109108

110109
if cache_dir is not None:
111110
kwargs["cache_dir"] = cache_dir

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ctranslate2>=4.0,<5
2-
huggingface_hub>=0.21
2+
huggingface_hub>=0.23
33
tokenizers>=0.13,<1
44
onnxruntime>=1.14,<2
55
av>=11
6-
tqdm
6+
tqdm

0 commit comments

Comments
 (0)