Compare commits
1 Commits
main
...
custom-nod
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
177010b0d4 |
@ -32,7 +32,12 @@ class ComfyUIDeployExternalLora:
|
|||||||
import os
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
if input_id and input_id.startswith('http'):
|
print('external lora using')
|
||||||
|
print("input id: ", input_id)
|
||||||
|
print("default lora : ", default_lora_name)
|
||||||
|
|
||||||
|
if input_id:
|
||||||
|
if input_id.startswith('http'):
|
||||||
unique_filename = str(uuid.uuid4()) + ".safetensors"
|
unique_filename = str(uuid.uuid4()) + ".safetensors"
|
||||||
print(unique_filename)
|
print(unique_filename)
|
||||||
print(folder_paths.folder_names_and_paths["loras"][0][0])
|
print(folder_paths.folder_names_and_paths["loras"][0][0])
|
||||||
@ -44,6 +49,8 @@ class ComfyUIDeployExternalLora:
|
|||||||
out_file.write(response.content)
|
out_file.write(response.content)
|
||||||
return (unique_filename,)
|
return (unique_filename,)
|
||||||
else:
|
else:
|
||||||
|
return (input_id,)
|
||||||
|
|
||||||
return (default_lora_name,)
|
return (default_lora_name,)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user