Update app.py
Browse files
app.py
CHANGED
|
@@ -233,7 +233,8 @@ css="""
|
|
| 233 |
|
| 234 |
with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
| 235 |
with gr.Column(elem_id="col-container"):
|
| 236 |
-
|
|
|
|
| 237 |
gr.Markdown("Perform diverse image edits using specialized [LoRA](https://huggingface.co/models?other=base_model:adapter:Qwen/Qwen-Image-Edit-2509) adapters for the [Qwen-Image-Edit](https://huggingface.co/Qwen/Qwen-Image-Edit-2509) model.")
|
| 238 |
|
| 239 |
with gr.Row(equal_height=True):
|
|
@@ -263,30 +264,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 263 |
guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
|
| 264 |
steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=4)
|
| 265 |
|
| 266 |
-
|
| 267 |
-
examples=[
|
| 268 |
-
["examples/1.jpg", "Transform into anime.", "Photo-to-Anime"],
|
| 269 |
-
["examples/5.jpg", "Remove shadows and relight the image using soft lighting.", "Light-Restoration"],
|
| 270 |
-
["examples/4.jpg", "Use a subtle golden-hour filter with smooth light diffusion.", "Relight"],
|
| 271 |
-
["examples/2.jpeg", "Rotate the camera 45 degrees to the left.", "Multiple-Angles"],
|
| 272 |
-
["examples/7.jpg", "Light source from the Right Rear", "Multi-Angle-Lighting"],
|
| 273 |
-
["examples/10.jpeg", "Upscale the image.", "Upscale-Image"],
|
| 274 |
-
["examples/7.jpg", "Light source from the Below", "Multi-Angle-Lighting"],
|
| 275 |
-
["examples/2.jpeg", "Switch the camera to a top-down right corner view.", "Multiple-Angles"],
|
| 276 |
-
["examples/9.jpg", "The camera moves slightly forward as sunlight breaks through the clouds, casting a soft glow around the character's silhouette in the mist. Realistic cinematic style, atmospheric depth.", "Next-Scene"],
|
| 277 |
-
["examples/8.jpg", "Make the subjects skin details more prominent and natural.", "Edit-Skin"],
|
| 278 |
-
["examples/6.jpg", "Switch the camera to a bottom-up view.", "Multiple-Angles"],
|
| 279 |
-
["examples/6.jpg", "Rotate the camera 180 degrees upside down.", "Multiple-Angles"],
|
| 280 |
-
["examples/4.jpg", "Rotate the camera 45 degrees to the right.", "Multiple-Angles"],
|
| 281 |
-
["examples/4.jpg", "Switch the camera to a top-down view.", "Multiple-Angles"],
|
| 282 |
-
["examples/4.jpg", "Switch the camera to a wide-angle lens.", "Multiple-Angles"],
|
| 283 |
-
],
|
| 284 |
-
inputs=[input_image, prompt, lora_adapter],
|
| 285 |
-
outputs=[output_image, seed],
|
| 286 |
-
fn=infer_example,
|
| 287 |
-
cache_examples=False,
|
| 288 |
-
label="Examples"
|
| 289 |
-
)
|
| 290 |
|
| 291 |
run_button.click(
|
| 292 |
fn=infer,
|
|
|
|
| 233 |
|
| 234 |
with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
| 235 |
with gr.Column(elem_id="col-container"):
|
| 236 |
+
# BAŞLIK BURADAN DEĞİŞTİRİLDİ
|
| 237 |
+
gr.Markdown("# **RAINBO PRO 3D IMAGE EDIT**", elem_id="main-title")
|
| 238 |
gr.Markdown("Perform diverse image edits using specialized [LoRA](https://huggingface.co/models?other=base_model:adapter:Qwen/Qwen-Image-Edit-2509) adapters for the [Qwen-Image-Edit](https://huggingface.co/Qwen/Qwen-Image-Edit-2509) model.")
|
| 239 |
|
| 240 |
with gr.Row(equal_height=True):
|
|
|
|
| 264 |
guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
|
| 265 |
steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=4)
|
| 266 |
|
| 267 |
+
# EXAMPLES KISMI TAMAMEN SİLİNDİ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 268 |
|
| 269 |
run_button.click(
|
| 270 |
fn=infer,
|