Hey,
The following line in nodes/config.py messes up with the comfyui-replicate node (or any other node that expects a REPLICATE_API_TOKEN variable in order to work):
|
os.environ["REPLICATE_API_TOKEN"] = "" |
It resets the variable without checking if it already exists, thus making it worthless for the whole of Comfy UI and every custom node. Same goes for FAL_KEY, which apparently also is reset in the line above this one.
Admittedly I haven't checked your whole code, so I don't know why those two specific environment variables need to be reset, but if it must be so, maybe you can add a notification somewhere? Spent way too much time trying to make the comfyui-replicate node (and another personal node of mine using the variable) to work, and it turns out the issue was in this, seemingly unrelated node.
Hey,
The following line in
nodes/config.pymesses up with thecomfyui-replicatenode (or any other node that expects aREPLICATE_API_TOKENvariable in order to work):comfyui-tensorops/nodes/config.py
Line 13 in d34488e
It resets the variable without checking if it already exists, thus making it worthless for the whole of Comfy UI and every custom node. Same goes for
FAL_KEY, which apparently also is reset in the line above this one.Admittedly I haven't checked your whole code, so I don't know why those two specific environment variables need to be reset, but if it must be so, maybe you can add a notification somewhere? Spent way too much time trying to make the
comfyui-replicatenode (and another personal node of mine using the variable) to work, and it turns out the issue was in this, seemingly unrelated node.