MCPcopy Create free account
hub / github.com/modelscope/modelscope / execute

Method execute

modelscope/cli/modelcard.py:168–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 % self.model_id)
167
168 def execute(self):
169 if self.args.action == 'create':
170 self.create_model()
171 elif self.args.action == 'upload':
172 self.push_model()
173 elif self.args.action == 'download':
174 snapshot_download(
175 self.model_id,
176 cache_dir=self.args.model_dir,
177 revision=self.args.version_tag)
178 else:
179 raise ValueError(
180 'The parameter of action must be in [create, upload]')

Callers

nothing calls this directly

Calls 3

create_modelMethod · 0.95
push_modelMethod · 0.95
snapshot_downloadFunction · 0.90

Tested by

no test coverage detected