fix conversion context
This commit is contained in:
parent
0d51d61728
commit
56fa0729b5
|
@ -65,6 +65,7 @@ class ConversionContext(ServerContext):
|
||||||
context = super().from_environ()
|
context = super().from_environ()
|
||||||
context.control = get_boolean(environ, "ONNX_WEB_CONVERT_CONTROL", True)
|
context.control = get_boolean(environ, "ONNX_WEB_CONVERT_CONTROL", True)
|
||||||
context.opset = int(environ.get("ONNX_WEB_CONVERT_OPSET", DEFAULT_OPSET))
|
context.opset = int(environ.get("ONNX_WEB_CONVERT_OPSET", DEFAULT_OPSET))
|
||||||
|
return context
|
||||||
|
|
||||||
|
|
||||||
def download_progress(urls: List[Tuple[str, str]]):
|
def download_progress(urls: List[Tuple[str, str]]):
|
||||||
|
|
Loading…
Reference in New Issue