(self, endpoint=None, token: Optional[str] = None)
| 189 | """ |
| 190 | |
| 191 | def __init__(self, endpoint=None, token: Optional[str] = None): |
| 192 | self.endpoint = endpoint if endpoint is not None else get_endpoint() |
| 193 | self.headers = {'user-agent': ModelScopeConfig.get_user_agent()} |
| 194 | self.cookies = HubApi().get_cookies( |
| 195 | access_token=token, cookies_required=True) |
| 196 | |
| 197 | # deploy_model |
| 198 | def create(self, model_id: str, revision: str, instance_name: str, |
nothing calls this directly
no test coverage detected