File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ def start(args):
226
226
227
227
local_cache ["api" ] = api
228
228
local_cache ["ctx" ] = ctx
229
- if api .get ("request_handler_impl_key " ) is not None :
229
+ if api .get ("request_handler " ) is not None :
230
230
package .install_packages (ctx .python_packages , ctx .storage )
231
231
local_cache ["request_handler" ] = ctx .get_request_handler_impl (api ["name" ])
232
232
Original file line number Diff line number Diff line change @@ -447,16 +447,16 @@ def start(args):
447
447
local_cache ["ctx" ] = ctx
448
448
449
449
try :
450
- if api .get ("request_handler_impl_key" ) is not None :
450
+ if api .get ("request_handler" ) is not None or util .is_resource_ref (api ["model" ]):
451
+ package .install_packages (ctx .python_packages , ctx .storage )
452
+
453
+ if api .get ("request_handler" ) is not None :
451
454
local_cache ["request_handler" ] = ctx .get_request_handler_impl (api ["name" ])
452
455
453
456
if not util .is_resource_ref (api ["model" ]):
454
- if api .get ("request_handler" ) is not None :
455
- package .install_packages (ctx .python_packages , ctx .storage )
456
457
if not os .path .isdir (args .model_dir ):
457
458
ctx .storage .download_and_unzip_external (api ["model" ], args .model_dir )
458
459
else :
459
- package .install_packages (ctx .python_packages , ctx .storage )
460
460
model_name = util .get_resource_ref (api ["model" ])
461
461
model = ctx .models [model_name ]
462
462
estimator = ctx .estimators [model ["estimator" ]]
You can’t perform that action at this time.
0 commit comments