Spaces:
Running
Running
A newer version of the Gradio SDK is available:
5.6.0
metadata
title: comfyui-deploy-gradio
app_file: main.py
sdk: gradio
sdk_version: 4.41.0
ComfyDeploy Gradio Interface
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.
Features
- 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
Installation
- 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
Usage
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.
How it works
- 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).
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.