Files
test/testgit.py
2025-06-19 09:36:06 +00:00

10 lines
270 B
Python

import mlflow
run = mlflow.get_run("82dc1facd73b4fda886b25005e5db0d8")
git_commit = run.data.tags.get("mlflow.source.git.commit")
git_repo_url = run.data.tags.get("mlflow.source.git.repoURL")
print(f"Git Commit: {git_commit}")
print(f"Git Repo URL: {git_repo_url}")