Spaces:
Running
on
Zero
Running
on
Zero
A newer version of the Gradio SDK is available:
6.5.1
Hugging Face Space Setup Guide
Quick Start
- Copy necessary files to this directory:
# Copy pipeline file (if QwenImageEditPipeline is not in diffusers yet)
cp ../UniPic/UniPic-3/qwen_image_edit_fast/pipeline_qwenimage_edit.py .
- Upload to Hugging Face Space:
# Install huggingface_hub if needed
pip install huggingface_hub
# Login
huggingface-cli login
# Create a new Space
huggingface-cli repo create your-space-name --type space
# Upload files
cd /path/to/gradio
huggingface-cli upload your-space-name app.py requirements.txt README.md
# If needed, also upload pipeline_qwenimage_edit.py
Files Structure
gradio_demo/
βββ app.py # Main Gradio application (required)
βββ requirements.txt # Python dependencies (required)
βββ README.md # Space description (required)
βββ pipeline_qwenimage_edit.py # Pipeline code (if not in diffusers)
Environment Variables (Optional)
You can set these in HF Space settings:
MODEL_NAME: Base model name (default: "Qwen-Image-Edit")TRANSFORMER_PATH: DMD model path (default: "Skywork/Unipic3-DMD/ema_transformer")
Notes
- The pipeline will try to import from
diffusersfirst - If not available, it will fallback to local
pipeline_qwenimage_edit.py - Make sure to copy the pipeline file if QwenImageEditPipeline is not in your diffusers version