ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Can normal workflow json be converted to API version with python?

Open baleksey opened this issue 2 years ago • 1 comments

I find it not very convinient to export workflow to API version and not be able to load it later in GUI again.

What I want to do is to work with normal workflow JSON (where I replace desired values) and then export it to API version with python right before sending it to Comfy server. This way wokflow can be easily modified and opened in GUI and also can be used as API.

Right now conversion is taking place on JS side and I haven't found any code to do that in Python.

P.S. It would be very useful to allow Comfy server accept any json workflow version: stripped for api or just regular one if we dont mind sending a lot of info to API but be able to edit it later in GUI.

baleksey avatar Oct 01 '23 15:10 baleksey

Agreed, this would be super helpful 🙏

Aaron-Porter avatar Dec 11 '23 14:12 Aaron-Porter