add file name

This commit is contained in:
Yingda Chen
2025-01-15 12:27:50 +08:00
parent f77b51e3c9
commit 2e1b2e3587

View File

@@ -1451,6 +1451,7 @@ class HubApi:
size=file_size,
data=file_path,
disable_tqdm=False if file_size > 10 * 1024 * 1024 else True,
tqdm_desc='[Uploading ' + file_path_in_repo + ' ]',
)
return {
@@ -1467,7 +1468,6 @@ class HubApi:
commit_message=commit_message,
commit_description=commit_description,
buffer_size_mb=1,
tqdm_desc='[Uploading]',
disable_tqdm=False,
)