diff --git a/api/onnx_web/convert/utils.py b/api/onnx_web/convert/utils.py index bd219d90..50886d59 100644 --- a/api/onnx_web/convert/utils.py +++ b/api/onnx_web/convert/utils.py @@ -65,6 +65,7 @@ class ConversionContext(ServerContext): context = super().from_environ() context.control = get_boolean(environ, "ONNX_WEB_CONVERT_CONTROL", True) context.opset = int(environ.get("ONNX_WEB_CONVERT_OPSET", DEFAULT_OPSET)) + return context def download_progress(urls: List[Tuple[str, str]]):