Skip to content

Commit c670853

Browse files
author
Valentin Thorey
committed
Fix the way files are open in DSS MLflow artifact plugin
1 parent d8fddab commit c670853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataikuapi/dss_plugin_mlflow/artifact_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def log_artifact(self, local_file, artifact_path=None):
5050
path = (
5151
os.path.join(self.base_artifact_path, artifact_path) if artifact_path else self.base_artifact_path
5252
)
53-
self.managed_folder.put_file(os.path.join(path, os.path.basename(local_file)), open(local_file))
53+
self.managed_folder.put_file(os.path.join(path, os.path.basename(local_file)), open(local_file, "rb"))
5454

5555
def log_artifacts(self, local_dir, artifact_path=None):
5656
"""

0 commit comments

Comments
 (0)