Update comment.

This commit is contained in:
Robin Huang 2024-08-08 13:11:26 -07:00
parent 7461e8eb00
commit 836db8cf7f

View File

@ -180,7 +180,9 @@ async def handle_download_error(e: Exception,
def validate_model_subdirectory(model_subdirectory: str) -> bool:
"""
Validate that the model subdirectory is safe.
Validate that the model subdirectory is safe to install into.
Must not contain relative paths, nested paths or special characters
other than underscores and hyphens.
Args:
model_subdirectory (str): The subdirectory for the specific model type.