diff --git a/api/onnx_web/utils.py b/api/onnx_web/utils.py index a0471e4a..8f8f0483 100644 --- a/api/onnx_web/utils.py +++ b/api/onnx_web/utils.py @@ -69,7 +69,7 @@ class ServerContext: self.num_workers = num_workers @classmethod - def from_environ(): + def from_environ(cls): return ServerContext( bundle_path=environ.get('ONNX_WEB_BUNDLE_PATH', path.join('..', 'gui', 'out')),