Spaces:
Paused
Paused
File size: 909 Bytes
0486adb 9967d2a 899abd8 9967d2a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | ---
title: Comfy Ui Api
emoji: 🐢
colorFrom: indigo
colorTo: yellow
sdk: docker
pinned: false
short_description: ComfyUI API - Docker
---
# Comfy UI Api
This is a simple example of how to run ComfyUI on a nvidia cuda machine using Docker.
## Requirements
- docker & docker-compose
- nvidia gpu
## Installation
### Local
1. Clone the repository
2. If you don't have any GPU, switch to branch `cpu-only`
3. Run `docker compose up` in the root directory of the repository
4. Open a browser and navigate to :
- ComfyUI: `http://localhost:8000`
### Hugging Face Spaces
When pushing the repository to Hugging Face Spaces, the container is automatically built and started from the
root [Dockerfile](Dockerfile).
Hugging Face Spaces exposes port 7860 on which ComfyUI is running after build and startup.
## Usage
### Workflows
Workflows stored in [workflows](workflows) are copied to the container. |