File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,8 @@ def start(args):
309309 cx_logger ().warn ("an error occurred while attempting to load classes" , exc_info = True )
310310
311311 waitress_kwargs = {}
312- if api ["tensorflow " ].get ("metadata" ) is not None :
313- for key , value in api ["tensorflow " ]["metadata" ].items ():
312+ if api ["onnx " ].get ("metadata" ) is not None :
313+ for key , value in api ["onnx " ]["metadata" ].items ():
314314 if key .startswith ("waitress_" ):
315315 waitress_kwargs [key [len ("waitress_" ) :]] = value
316316
Original file line number Diff line number Diff line change @@ -150,8 +150,8 @@ def start(args):
150150 cx_logger ().warn ("an error occurred while attempting to load classes" , exc_info = True )
151151
152152 waitress_kwargs = {}
153- if api ["tensorflow " ].get ("metadata" ) is not None :
154- for key , value in api ["tensorflow " ]["metadata" ].items ():
153+ if api ["predictor " ].get ("metadata" ) is not None :
154+ for key , value in api ["predictor " ]["metadata" ].items ():
155155 if key .startswith ("waitress_" ):
156156 waitress_kwargs [key [len ("waitress_" ) :]] = value
157157
You can’t perform that action at this time.
0 commit comments