# pip install huggingface-cli import os os.system("pip install -U huggingface-hub") os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com' from huggingface_hub import hf_hub_download, snapshot_download hf_hub_download(repo_id="ai-forever/Real-ESRGAN", filename="RealESRGAN_x4.pth", local_dir="model_real_esran") snapshot_download(repo_id="AlexWortega/RIFE", local_dir="model_rife")