From 459c856b6b8c5f1f05f0a08782d599a86f3a8c9a Mon Sep 17 00:00:00 2001 From: Nils Mechtel Date: Mon, 16 Dec 2024 10:15:08 +0100 Subject: [PATCH] add test run logging --- bioimageio_colab/register_sam_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bioimageio_colab/register_sam_service.py b/bioimageio_colab/register_sam_service.py index e0df310..940c93a 100644 --- a/bioimageio_colab/register_sam_service.py +++ b/bioimageio_colab/register_sam_service.py @@ -156,6 +156,8 @@ def test_model(cache_dir: str, model_name: str, context: dict = None) -> dict: """ Test the segmentation service. """ + user_id = context["user"] if context else {"id": "anonymous"} + logger.info(f"User '{user_id}' - Test run for model '{model_name}'...") image = np.random.rand(1024, 1024) embedding = compute_image_embedding( cache_dir=cache_dir,