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

Method __init__

modelscope/cli/modelcard.py:27–35  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

25 name = 'modelcard'
26
27 def __init__(self, args):
28 super().__init__(args)
29 self.api = HubApi()
30 if args.access_token:
31 self.api.login(args.access_token)
32 self.model_id = os.path.join(
33 self.args.group_id, self.args.model_id
34 ) if '/' not in self.args.model_id else self.args.model_id
35 self.url = os.path.join(get_endpoint(), self.model_id)
36
37 @staticmethod
38 def register(subparsers: ArgumentParser) -> None:

Callers

nothing calls this directly

Calls 2

HubApiClass · 0.90
get_endpointFunction · 0.90

Tested by

no test coverage detected