fix: external lora takes in value outside of default
This commit is contained in:
parent
797180b5c7
commit
c843926d6e
@ -32,7 +32,8 @@ class ComfyUIDeployExternalLora:
|
||||
import os
|
||||
import uuid
|
||||
|
||||
if input_id and input_id.startswith('http'):
|
||||
if input_id:
|
||||
if input_id.startswith('http'):
|
||||
unique_filename = str(uuid.uuid4()) + ".safetensors"
|
||||
print(unique_filename)
|
||||
print(folder_paths.folder_names_and_paths["loras"][0][0])
|
||||
@ -44,6 +45,8 @@ class ComfyUIDeployExternalLora:
|
||||
out_file.write(response.content)
|
||||
return (unique_filename,)
|
||||
else:
|
||||
return (input_id,)
|
||||
|
||||
return (default_lora_name,)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user