(args: argparse.Namespace)
| 1979 | for relative in required_files: |
| 1980 | source_path = source_root / relative |
| 1981 | destination_path = destination_root / relative |
| 1982 | destination_path.parent.mkdir(parents=True, exist_ok=True) |
| 1983 | shutil.copy2(source_path, destination_path) |
| 1984 | |
| 1985 | |
| 1986 | def install_snapshot(package: ModelPackage, source: SnapshotSource, models_root: Path, overwrite: bool) -> Path: |
| 1987 | target_dir = models_root / package.target_directory |
| 1988 | staging_root = models_root / ".engine_model_staging" |
| 1989 | staging_root.mkdir(parents=True, exist_ok=True) |
| 1990 | staging_dir = Path(tempfile.mkdtemp(prefix=f"{package.target_directory}.", dir=staging_root)) |
| 1991 | try: |
| 1992 | generated_files = {"audiovae.safetensors"} |
| 1993 | pre_validate_files = tuple( |
no test coverage detected