Create download_flux.py
Browse files123456789101112131415#!/usr/bin/env python3import osfrom huggingface_hub import hf_hub_download
token = open('/run/secrets/HF_TOKEN').read().strip()for subdir, filename in [['models/unet', 'flux1-schnell.safetensors'], ['models/vae', 'ae.safetensors']]: os.makedirs(subdir, exist_ok=True) hf_hub_download( repo_id="black-forest-labs/FLUX.1-schnell", filename=filename, token=token, local_dir=subdir, force_download=True )download_flux.pyAdded+15