add file name (#1186)

* add file name

* address cr

---------

Co-authored-by: Yingda Chen <yingda.chen@alibaba-inc.com>
This commit is contained in:
Yingda Chen
2025-01-15 13:45:16 +08:00
committed by GitHub
parent f77b51e3c9
commit 70ac4db097

View File

@@ -1450,7 +1450,8 @@ class HubApi:
sha256=file_hash,
size=file_size,
data=file_path,
disable_tqdm=False if file_size > 10 * 1024 * 1024 else True,
disable_tqdm=False if file_size > 5 * 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,
)