Skip to content

Commit

Permalink
fix: pass tqdm instance
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Dec 9, 2023
1 parent 92f39de commit f407a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/helpers/network/huggingface_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ def huggingface_download(repository: str, enable_progress_bar: bool = True) -> s
repository,
resume_download=True,
local_files_only=not has_internet_access(repository),
tqdm_class=None if enable_progress_bar else DisableTqdm # type: ignore
tqdm_class=None if enable_progress_bar else DisableTqdm()
)

0 comments on commit f407a48

Please sign in to comment.