Hey, I’m trying to create a custom node to use LeonardoAI to generate images based on a prompt. When testing the node I get this error:
Leonardo Image generation Failed!
Command exited with code 1 and error:
Traceback (most recent call last):
File “/index.py”, line 90, in
print(‘FUNCTION_OUTPUT\n’ + str(main(‘girl riding a horse’, {})))
File “/index.py”, line 89, in main
return Image
NameError: name ‘Image’ is not defined
Here is the run link: https://www.gumloop.com/custom-nodes/builder?node_id=hkCLbmfqfMA5hKX54fUEmp