Spaces:
Sleeping
Sleeping
Delete download.py
Browse files1234567891011121314151617import osfrom huggingface_hub import snapshot_download
# Define where you want to store the model# If using HF Persistent Storage, change this to "/data/model_weights"LOCAL_MODEL_PATH = "./model_weights"
print(f"Downloading OmniSVG 1.1 8B to {LOCAL_MODEL_PATH}...")
snapshot_download( repo_id="OmniSVG/OmniSVG1.1_8B", local_dir=LOCAL_MODEL_PATH, local_dir_use_symlinks=False, # Important: Downloads actual files, not just links ignore_patterns=["*.msgpack", "*.h5", "*.ot"] # Optional: Skip non-pytorch files to save space)
print("Download complete. You can now load from this local path.")download.pyDeleted-17