Google-Colab_Notebooks icon indicating copy to clipboard operation
Google-Colab_Notebooks copied to clipboard

[error] Chroma_HD notebook now requires Civitai token

Open upl1nk-v01d opened this issue 10 months ago • 1 comments

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

upl1nk-v01d avatar Jan 14 '26 07:01 upl1nk-v01d

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.

Isi-dev avatar Jan 14 '26 13:01 Isi-dev