def on_start(self): self._model_client = model.ModelClient( model.calculate_url_from_config(), token=edi.build_client().get_token(config.MODEL_DEPLOYMENT_NAME), http_client=self.client) self._image = load_image( os.path.join('performance', 'files', 'nine.png'))
def setUp(self): self._client = ModelClient(model.calculate_url_from_config(), token=build_client().get_token( config.MODEL_DEPLOYMENT_NAME))
def on_start(self): self._model_client = model.ModelClient( model.calculate_url_from_config(), token=edi.build_client().get_token(config.MODEL_DEPLOYMENT_NAME), http_client=self.client)