def download_model_from_gcs()

in services/4-model-evaluation/model-evaluation.py [0:0]


def download_model_from_gcs(bucket_name, model_gcs_path, local_dir):
    storage_client = storage.Client()
    bucket = storage_client.bucket(bucket_name)
    blobs = bucket.list_blobs(prefix=model_gcs_path)
    
    os.makedirs(local_dir, exist_ok=True)
    for blob in blobs:
        local_file_path = os.path.join(local_dir, os.path.basename(blob.name))
        blob.download_to_filename(local_file_path)
        print(f"Downloaded {blob.name} to {local_file_path}")