ok Merge branch 'master' of github.com:modelscope/modelscope into release/1.29

This commit is contained in:
xingjun.wxj
2025-08-12 11:04:50 +08:00
3 changed files with 5 additions and 5 deletions

View File

@@ -27,9 +27,9 @@ on:
description: 'Other params in --xxx xxx'
required: false
python_version:
description: 'Python version to use, default is 3.10.14'
description: 'Python version to use, default is 3.11.11'
required: false
default: '3.10.14'
default: '3.11.11'
run-name: Docker-${{ inputs.modelscope_branch }}-${{ inputs.image_type }}-${{ inputs.workflow_name }}-${{ inputs.python_version }}-by-@${{ github.actor }}

View File

@@ -153,8 +153,6 @@ class CreateCMD(CLICommand):
endpoint=self.args.endpoint,
)
print(f'Successfully created the repo: {self.args.repo_id}.')
def _create_aigc_model(self):
"""Execute the command."""
api = HubApi(endpoint=self.args.endpoint)

View File

@@ -1538,7 +1538,9 @@ class HubApi:
repo_exists: bool = self.repo_exists(repo_id, repo_type=repo_type, endpoint=endpoint, token=token)
if repo_exists:
if exist_ok:
return f'{endpoint}/{repo_type}s/{repo_id}'
repo_url: str = f'{endpoint}/{repo_type}s/{repo_id}'
logger.warning(f'Repo {repo_id} already exists, got repo url: {repo_url}')
return repo_url
else:
raise ValueError(f'Repo {repo_id} already exists!')