From 9b883de1cb1d8f2a0e9f78b28d9bb4f14961812f Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sun, 10 Dec 2023 12:16:01 -0600 Subject: [PATCH] pass context to client ctor --- api/onnx_web/convert/client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/onnx_web/convert/client/__init__.py b/api/onnx_web/convert/client/__init__.py index 6047b2b3..1d90f04e 100644 --- a/api/onnx_web/convert/client/__init__.py +++ b/api/onnx_web/convert/client/__init__.py @@ -45,7 +45,7 @@ def fetch_model( for proto, client_type in model_sources.items(): if source.startswith(proto): - client = client_type() + client = client_type(conversion) return client.download( conversion, name, source, format=format, dest=dest, **kwargs )