title | app_file | sdk | sdk_version |
---|---|---|---|
comfyui-deploy-gradio |
main.py |
gradio |
4.41.0 |
This project provides a Gradio interface for interacting with ComfyDeploy, allowing users to dynamically generate UI components based on deployment input definitions and submit jobs to ComfyDeploy.
- Dynamic UI generation based on ComfyDeploy input definitions
- Support for various input types (text, image, number, checkbox, etc.)
- Asynchronous job submission to ComfyDeploy
- Real-time progress tracking
- Display of output images and text
- Clone this repository
- Install the required dependencies:
pip install comfydeploy gradio pillow requests python-dotenv
- Create a
.env
file in the project root with the following content:
API_KEY=your_comfydeploy_api_key
DEPLOYMENT_ID=your_deployment_id
Run the main script:
python main.py
This will launch a Gradio interface in your default web browser. The interface will dynamically generate input components based on your ComfyDeploy deployment configuration. You can then input values and submit jobs to ComfyDeploy.
- The script fetches input definitions from ComfyDeploy.
- It dynamically generates Gradio components based on these definitions.
- When the user submits inputs, it sends a job to ComfyDeploy.
- The script then polls for job completion and displays the results (images and text).
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.