From 62c142d59bd2f6e4eecdfc9064c68769c5fc7704 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Thu, 30 May 2024 11:43:39 +0200 Subject: [PATCH] fix: fix huggingface token not found error (#89) This commit ensures that a more descriptive error is thrown when the huggingface token is not set. --- runner/dl_checkpoints.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runner/dl_checkpoints.sh b/runner/dl_checkpoints.sh index 57582658..146b4d3e 100755 --- a/runner/dl_checkpoints.sh +++ b/runner/dl_checkpoints.sh @@ -64,7 +64,7 @@ if [ "$MODE" = "alpha" ]; then # Download image-to-video models (token-gated). printf "\nDownloading token-gated models...\n" check_hf_auth - huggingface-cli download stabilityai/stable-video-diffusion-img2vid-xt-1-1 --include "*.fp16.safetensors" "*.json" --cache-dir models "${TOKEN_FLAG:+$TOKEN_FLAG}" + huggingface-cli download stabilityai/stable-video-diffusion-img2vid-xt-1-1 --include "*.fp16.safetensors" "*.json" --cache-dir models ${TOKEN_FLAG:+"$TOKEN_FLAG"} printf "\nAlpha models downloaded successfully!\n" else @@ -85,7 +85,7 @@ else # Download image-to-video models (token-gated). printf "\nDownloading token-gated models...\n" check_hf_auth - huggingface-cli download stabilityai/stable-video-diffusion-img2vid-xt-1-1 --include "*.fp16.safetensors" "*.json" --cache-dir models "${TOKEN_FLAG:+$TOKEN_FLAG}" + huggingface-cli download stabilityai/stable-video-diffusion-img2vid-xt-1-1 --include "*.fp16.safetensors" "*.json" --cache-dir models ${TOKEN_FLAG:+"$TOKEN_FLAG"} printf "\nAll models downloaded successfully!\n" fi