Skip to content

Commit

Permalink
Merge pull request #9 from Visionatrix/PuLID_ComfyUI
Browse files Browse the repository at this point in the history
added `PuLID_ComfyUI` to the list of Nodes
  • Loading branch information
bigcat88 authored Jul 11, 2024
2 parents 2d65585 + d91c5ca commit c661c3d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/TechnicalInformation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Visionatrix by default install and update these nodes:
* `was-node-suite-comfyui <https://github.com/Visionatrix/was-node-suite-comfyui>`_
* `ComfyUI-AutoCropFaces <https://github.com/Visionatrix/ComfyUI-AutoCropFaces>`_
* `comfyui-ollama <https://github.com/Visionatrix/comfyui-ollama>`_
* `PuLID_ComfyUI <https://github.com/Visionatrix/PuLID_ComfyUI>`_
* `ComfyUI-Visionatrix <https://github.com/Visionatrix/ComfyUI-Visionatrix>`_

We are gradually expanding the list.
Expand Down
17 changes: 14 additions & 3 deletions docs/VixWorkflows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Technically, this is a list of objects, where each object is one input parameter
.. note::
Used for both UI and backend, but not mandatory even for optional fields (as in the ComfyUI flow, the Node value is still set)

* "comfy_node_id" - a field only for the backend, which defines what to do with this value (where to use it in the ComfyUI Flow)
* "comfy_node_id" - **a field only for the backend**, which defines what to do with this value (where to use it in the ComfyUI Flow)


Create task based on Flow
Expand All @@ -171,12 +171,14 @@ Create task based on Flow

.. code-block:: python
@APP.post("/task")
async def task_run(
@ROUTER.post("/create")
async def create_task(
request: Request,
name: str = Form(description="Name of the flow from which the task should be created"),
count: int = Form(1, description="Number of tasks to be created"),
input_params: str = Form(None, description="List of input parameters as an encoded json string"),
webhook_url: str | None = Form(None, description="URL to call when task state changes"),
webhook_headers: str | None = Form(None, description="Headers for webhook url as an encoded json string"),
files: list[UploadFile | str] = Form(None, description="List of input files for flow"), # noqa
) -> TaskRunResults:
"""
Expand All @@ -194,3 +196,12 @@ Create task based on Flow
* files - list of input files (files should be in the order they are defined in the Vix Flow)

When this endpoint is called, a task will be created and queued for execution by one of available workers.

You can generate Python client with the help of `openapi-python-client <https://github.com/openapi-generators/openapi-python-client>`_ and
an example code for creating a Task will look like this:

.. code-block:: python
client_base = visionatrix_client.Client(base_url="http://127.0.0.1:8288")
params = BodyCreateTask(name="sdxl_lighting", input_params=json.dumps({"prompt": "bottle"}))
created_tasks_id_list = api.tasks.create_task.sync(client=client_base, body=params)

0 comments on commit c661c3d

Please sign in to comment.