Skip to content

Commit 777048b

Browse files
committed
Fixup/revert: add some print statements
1 parent 1e1efe0 commit 777048b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

bats_ai/tasks/tasks.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)