Replace colon in path so it doesn't cause issue on Windows

This commit is contained in:
Ashwin Bharambe 2024-11-11 17:30:36 -08:00
parent 0a3b3d5fb6
commit 285cd26fb2

View file

@ -10,4 +10,5 @@ from .config_dirs import DEFAULT_CHECKPOINT_DIR
def model_local_dir(descriptor: str) -> str: def model_local_dir(descriptor: str) -> str:
return os.path.join(DEFAULT_CHECKPOINT_DIR, descriptor) path = os.path.join(DEFAULT_CHECKPOINT_DIR, descriptor)
return path.replace(":", "-")