Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -335,7 +335,7 @@ css = '''
|
|
| 335 |
.dark .progress-text{color: white !important}
|
| 336 |
#examples{max-width: 1200px; margin: 0 auto; }
|
| 337 |
.radio-group {display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px;}
|
| 338 |
-
[data-testid="block-info"] { display: none !important }
|
| 339 |
'''
|
| 340 |
|
| 341 |
def reset_all():
|
|
@@ -371,7 +371,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
| 371 |
gr.Markdown("## 💡 Qwen Image Edit — Relighting Control")
|
| 372 |
gr.Markdown("""
|
| 373 |
Qwen Image Edit 2509 for Image Relighting ✨
|
| 374 |
-
Using [dx8152's Qwen-Image-Edit-2509-Relight LoRA](https://huggingface.co/dx8152/Qwen-Image-Edit-2509-Relight) and [
|
| 375 |
"""
|
| 376 |
)
|
| 377 |
with gr.Row():
|
|
@@ -526,7 +526,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
| 526 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
| 527 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
| 528 |
true_guidance_scale = gr.Slider(label="True Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
|
| 529 |
-
num_inference_steps = gr.Slider(label="Inference Steps", minimum=1, maximum=40, step=1, value=
|
| 530 |
height = gr.Slider(label="Height", minimum=256, maximum=2048, step=8, value=1024)
|
| 531 |
width = gr.Slider(label="Width", minimum=256, maximum=2048, step=8, value=1024)
|
| 532 |
|
|
@@ -579,9 +579,9 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
| 579 |
# Examples
|
| 580 |
gr.Examples(
|
| 581 |
examples=[
|
| 582 |
-
["harold.png", "dramatic", "side", "soft", "none", "", 0, True, 1.0,
|
| 583 |
-
["distracted.png", "golden_hour", "side", "strong", "none", "", 0, True, 1.0,
|
| 584 |
-
["disaster.jpg", "moonlight", "front", "medium", "neon_city", "", 0, True, 1.0,
|
| 585 |
],
|
| 586 |
inputs=[image, light_type, light_direction, light_intensity, illumination_env, prompt,
|
| 587 |
seed, randomize_seed, true_guidance_scale, num_inference_steps, height, width],
|
|
|
|
| 335 |
.dark .progress-text{color: white !important}
|
| 336 |
#examples{max-width: 1200px; margin: 0 auto; }
|
| 337 |
.radio-group {display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px;}
|
| 338 |
+
.radio-group [data-testid="block-info"] { display: none !important }
|
| 339 |
'''
|
| 340 |
|
| 341 |
def reset_all():
|
|
|
|
| 371 |
gr.Markdown("## 💡 Qwen Image Edit — Relighting Control")
|
| 372 |
gr.Markdown("""
|
| 373 |
Qwen Image Edit 2509 for Image Relighting ✨
|
| 374 |
+
Using [dx8152's Qwen-Image-Edit-2509-Relight LoRA](https://huggingface.co/dx8152/Qwen-Image-Edit-2509-Relight) and [lightx2v/Qwen-Image-Lightning](https://huggingface.co/lightx2v/Qwen-Image-Lightning) for 4-step inference 💨
|
| 375 |
"""
|
| 376 |
)
|
| 377 |
with gr.Row():
|
|
|
|
| 526 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
| 527 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
| 528 |
true_guidance_scale = gr.Slider(label="True Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
|
| 529 |
+
num_inference_steps = gr.Slider(label="Inference Steps", minimum=1, maximum=40, step=1, value=4)
|
| 530 |
height = gr.Slider(label="Height", minimum=256, maximum=2048, step=8, value=1024)
|
| 531 |
width = gr.Slider(label="Width", minimum=256, maximum=2048, step=8, value=1024)
|
| 532 |
|
|
|
|
| 579 |
# Examples
|
| 580 |
gr.Examples(
|
| 581 |
examples=[
|
| 582 |
+
["harold.png", "dramatic", "side", "soft", "none", "", 0, True, 1.0, 4, 672, 1024],
|
| 583 |
+
["distracted.png", "golden_hour", "side", "strong", "none", "", 0, True, 1.0, 4, 640, 1024],
|
| 584 |
+
["disaster.jpg", "moonlight", "front", "medium", "neon_city", "", 0, True, 1.0, 4, 640, 1024],
|
| 585 |
],
|
| 586 |
inputs=[image, light_type, light_direction, light_intensity, illumination_env, prompt,
|
| 587 |
seed, randomize_seed, true_guidance_scale, num_inference_steps, height, width],
|