BennyKok / comfyui-deploy

An open source `vercel` like deployment platform for Comfy UI
https://comfydeploy.ing
GNU Affero General Public License v3.0
983 stars 126 forks source link

fix: ExternalLoRA node Make downloaded files reusable #58

Closed GwonHyeok closed 2 months ago

GwonHyeok commented 2 months ago
if lora_save_name in existing_loras:
                    raise "LoRA file '{lora_save_name}' already exists."

This code is raising an error if default_lora_name starts with http and the file lora_save_name already exists.

This implementation needs to add a part to check if the file has been downloaded externally.

Instead of raising an error, it would be better to use return (lora_save_name,) to make the saved file available.