mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 04:01:10 +01:00
ok Merge branch 'master' of github.com:modelscope/modelscope into release/1.29
This commit is contained in:
4
.github/workflows/docker-image.yml
vendored
4
.github/workflows/docker-image.yml
vendored
@@ -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 }}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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!')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user