Google-Colab_Notebooks
Google-Colab_Notebooks copied to clipboard
[error] Chroma_HD notebook now requires Civitai token
There is an error currently with Civitai token requirement on cell '1. Setup Environment'. About 2 month ago there were no issues with Civitai when field 'token_if_civitai_url' was left empty.
ValueError Traceback (most recent call last)
[/tmp/ipython-input-600309281.py](https://localhost:8080/#) in <cell line: 0>()
200 token_if_civitai_url = "" # @param {"type":"string"}
201 if download_loRA:
--> 202 lora = download_lora(chroma_HD_lora_url, civitai_token=token_if_civitai_url)
203 # Validate loRA file extension
204 valid_extensions = {'.safetensors', '.ckpt', '.pt', '.pth', '.sft'}
[/tmp/ipython-input-600309281.py](https://localhost:8080/#) in download_lora(link, folder, civitai_token)
186 if "civitai.com" in link.lower():
187 if not civitai_token:
--> 188 raise ValueError("Civitai token is required for Civitai downloads")
189 return download_civitai_model(link, civitai_token, folder)
190 else:
ValueError: Civitai token is required for Civitai downloads
You can disable download_loRA or remove the Civitai download link in chroma_HD_lora_url to avoid the error. The default setup requires a CivitAI token because download_loRA is enabled and there's a Civitai download link in chroma_HD_lora_url. If there's a huggingface download link in chroma_HD_lora_url, then the error will not be raised.