(self, args)
| 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: |
nothing calls this directly
no test coverage detected