Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modelscope/hub/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,7 @@ def upload_file(
buffer_size_mb: Optional[int] = 1,
tqdm_desc: Optional[str] = '[Uploading]',
disable_tqdm: Optional[bool] = False,
revision: Optional[str] = DEFAULT_REPOSITORY_REVISION
) -> CommitInfo:

if repo_type not in REPO_TYPE_SUPPORT:
Expand Down Expand Up @@ -1699,6 +1700,7 @@ def upload_file(
commit_description=commit_description,
token=token,
repo_type=repo_type,
revision=revision,
)

return commit_info
Expand Down