diff --git a/README.md b/README.md index bfd35bfe0..be6b865ce 100644 --- a/README.md +++ b/README.md @@ -141,10 +141,11 @@ On macOS, install exactly Python 3.11 using `brew`, which you can download from ```shell comfyui ``` - To generate python OpenAPI models: + This will start ComfyUI in the current working directory of your terminal. This should have your `models/` directory. If your models are located somewhere else, such as `C:/some directory/models`, do: ```shell - comfyui-openapi-gen + comfyui --cwd="C:/some directory/" ``` + You can see all the command line options with hints using `comfyui --help`. ## Manual Install (Windows, Linux, macOS) For Development diff --git a/script_examples/remote_api_example.py b/script_examples/remote_api_example.py index af6790aad..ad981ca90 100644 --- a/script_examples/remote_api_example.py +++ b/script_examples/remote_api_example.py @@ -121,6 +121,9 @@ async def main(): prompt = Prompt.validate(prompt_dict) # Your prompt is ready to be processed. You should start your ComfyUI server; or, specify a remote URL for it. + # If you want to run your own ComfyUI server, follow the **Manual Install (Windows, Linux, macOS)** instructions. + # Then, as the README specifies, `cd` into the directory that contains your `models/` folder and run: + # comfyui --listen # Let's create the client we will use to access it: from comfy.client.aio_client import AsyncRemoteComfyClient client = AsyncRemoteComfyClient(server_address="http://localhost:8188")