示例#1
0
 def setup_(url, project):
     api = MLApi(url=url)
     if not isinstance(project, Project):
         project = Project.objects.get(pk=project)
     return api.setup(project)
示例#2
0
 def api(self):
     return MLApi(url=self.url, timeout=self.timeout)
示例#3
0
 def healthcheck_(url):
     return MLApi(url=url).health()
示例#4
0
 def api(self):
     return MLApi(url=self.url)