fix class method
This commit is contained in:
parent
4809e00982
commit
1d90f9b53c
|
@ -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')),
|
||||
|
|
Loading…
Reference in New Issue