From 337acac5f5fb71157029b2e26391206206631983 Mon Sep 17 00:00:00 2001 From: narugo1992 Date: Wed, 27 Nov 2024 21:07:23 +0800 Subject: [PATCH] dev(narugo): complete this part --- hfutils/operate/upload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hfutils/operate/upload.py b/hfutils/operate/upload.py index bc64a0b354..3d258725aa 100644 --- a/hfutils/operate/upload.py +++ b/hfutils/operate/upload.py @@ -135,7 +135,8 @@ def upload_directory_as_archive(local_directory, repo_id: str, archive_in_repo: else: id_pattern = f'{{x:0{max(len(str(len(file_groups))), 5)}d}}' raw_dst_archive_file = os.path.normpath(os.path.join(td, archive_in_repo)) - for gid, group in enumerate(file_groups, start=1): + for gid, group in enumerate(tqdm(file_groups, silent=silent, + desc=f'Making {plural_word(len(file_groups), "package")}'), start=1): group: FilesGroup dst_archive_file_body, dst_archive_file_ext = archive_splitext(raw_dst_archive_file) dst_archive_file = (f'{dst_archive_file_body}'