File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -507,15 +507,23 @@ def _viya4_model_load(
507507 pickle_type = pickle_type if pickle_type else "pickle"
508508
509509 if mojo_model :
510- cls .score_code += f"model = h2o.import_mojo(str(Path(settings.pickle_path" \
511- f") / { model_file_name } ))\n \n "
512- return f"{ '' :8} model = h2o.import_mojo(str(Path(settings.pickle_path) / " \
513- f"{ model_file_name } ))\n \n "
510+ cls .score_code += (
511+ f"model = h2o.import_mojo(str(Path(settings.pickle_path"
512+ f") / { model_file_name } ))\n \n "
513+ )
514+ return (
515+ f"{ '' :8} model = h2o.import_mojo(str(Path(settings.pickle_path) / "
516+ f"{ model_file_name } ))\n \n "
517+ )
514518 elif binary_h2o_model :
515- cls .score_code += f"model = h2o.load(str(Path(settings.pickle_path) / " \
516- f"{ model_file_name } ))\n \n "
517- return f"{ '' :8} model = h2o.load(str(Path(settings.pickle_path) / " \
518- f"{ model_file_name } ))\n \n "
519+ cls .score_code += (
520+ f"model = h2o.load(str(Path(settings.pickle_path) / "
521+ f"{ model_file_name } ))\n \n "
522+ )
523+ return (
524+ f"{ '' :8} model = h2o.load(str(Path(settings.pickle_path) / "
525+ f"{ model_file_name } ))\n \n "
526+ )
519527 else :
520528 cls .score_code += (
521529 f"with open(Path(settings.pickle_path) / "
You can’t perform that action at this time.
0 commit comments