splitify-backend / js /download_model.py
BhavyaPatel07's picture
Update js/download_model.py
04d50e9 verified
Raw History Blame Contribute Delete
452 Bytes
"""
Runs once during `docker build`. Downloads and caches the htdemucs
model weights into the image so the running container never needs to
hit the network for them — see the comment in the Dockerfile for why
this matters.
"""
from demucs.pretrained import get_model
if __name__ == "__main__":
print("Pre-downloading htdemucs weights into the image...")
get_model("htdemucs")
print("Done. Model weights are now baked into this image.")