Skip to content

Commit 3cc6b17

Browse files
committed
adjust readme
1 parent 883919a commit 3cc6b17

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Install missing packages via `requirements.txt`
44

55
`pip install -r requirements.txt`
66

7-
start `main.py` for image generation call make sure you have ComfyUI running under 127.0.0.1:8188 if not adjust the host in `websocket_api.py`.
7+
## Using the API
88

9-
You need to have an output folder with /output and an folder /output/temp. You can change the output path to a different folder in the `prompt_to_image.py`.
9+
You need to a comfyUI server running and be able to access the "/ws" path for this server. If you have the server running localy it usually runs under "127.0.0.1:8188".
10+
If this is not the case for you, change the `server_address` in the `basic_api.py`.
11+
12+
In the workflow folder are two basic Workflows:
13+
- base_workflow.json
14+
- baisc_image_to_image
15+
16+
For simple prompt to image generation load the `base_workflow.json` and call `prompt_to_image` method with your desired parameters.
17+
For image to image generation load the `basic_image_to_image.json` and put your input image in the input folder. Call `prompt_image_to_image` with your desired parameters.

0 commit comments

Comments
 (0)