File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -535,10 +535,11 @@ def predict_compressed(image_file):
535535 # 2: do inference from deployed mlflow model
536536 inference_mode = int (os .getenv ('INFERENCE_MODE' , 0 ))
537537 if inference_mode == 1 :
538- pass
538+ print ( 'Using inference mode 1: file from mlflow' )
539539 elif inference_mode == 2 :
540- pass
540+ print ( 'Using inference mode 2: deployed mlflow model' )
541541 else :
542+ print ('Using inference mode 0: local file' )
542543 return _fully_local_inference (image_file , False )
543544
544545
@@ -571,9 +572,6 @@ def train_body(experiment_name: str):
571572 mlflow .set_tracking_uri (settings .MLFLOW_ENDPOINT )
572573 mlflow .set_experiment (experiment_name )
573574
574- print (mlflow .get_tracking_uri ())
575- print (mlflow .get_artifact_uri ())
576-
577575 mlflow .end_run ()
578576 with mlflow .start_run ():
579577 mlflow .log_params (params )
You can’t perform that action at this time.
0 commit comments