Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -286,7 +286,7 @@ def infer(
|
|
286 |
print(f"Seed: {seed}, Steps: {num_inference_steps}, Guidance: {true_guidance_scale}")
|
287 |
|
288 |
if rewrite_prompt:
|
289 |
-
prompt = polish_prompt(prompt,
|
290 |
print(f"Rewritten Prompt: {prompt}")
|
291 |
|
292 |
# Generate the edited image - always generate just 1 image
|
@@ -334,7 +334,7 @@ with gr.Blocks(css=css) as demo:
|
|
334 |
gr.HTML("""
|
335 |
<div id="logo-title">
|
336 |
<img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/qwen_image_edit_logo.png" alt="Qwen-Image Edit Logo" width="400" style="display: block; margin: 0 auto;">
|
337 |
-
<h2 style="font-style: italic;color: #5b47d1;margin-top: -27px !important;margin-left: 133px;">
|
338 |
</div>
|
339 |
""")
|
340 |
gr.Markdown("""
|
|
|
286 |
print(f"Seed: {seed}, Steps: {num_inference_steps}, Guidance: {true_guidance_scale}")
|
287 |
|
288 |
if rewrite_prompt:
|
289 |
+
prompt = polish_prompt(prompt, concatenated_image)
|
290 |
print(f"Rewritten Prompt: {prompt}")
|
291 |
|
292 |
# Generate the edited image - always generate just 1 image
|
|
|
334 |
gr.HTML("""
|
335 |
<div id="logo-title">
|
336 |
<img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/qwen_image_edit_logo.png" alt="Qwen-Image Edit Logo" width="400" style="display: block; margin: 0 auto;">
|
337 |
+
<h2 style="font-style: italic;color: #5b47d1;margin-top: -27px !important;margin-left: 133px;">Multi Image Composition</h2>
|
338 |
</div>
|
339 |
""")
|
340 |
gr.Markdown("""
|