def METHOD_NAME(self, fastapi_service: FastAPI):
    self._model = self.build_model()
    fastapi_service.post("/predict", response_class=JSONResponse)(
        _InferenceCallable(
            deserialize=_DESERIALIZER[self.input] if self.input else self.deserialize,
            predict=self.predict,
            serialize=_SERIALIZER[self.output] if self.output else self.serialize,
        ).run
    )