Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,8 @@ def generate_image(
|
|
| 75 |
print(f"Actual Prompt: '{prompt}'")
|
| 76 |
print(f"Negative Prompt: '{negative_prompt}'")
|
| 77 |
print(f"Seed: {seed}, Size: {width}x{height}, Steps: {num_inference_steps}, Guidance: {guidance_scale}")
|
| 78 |
-
|
|
|
|
| 79 |
# Generate the image
|
| 80 |
image = pipe(
|
| 81 |
prompt=prompt,
|
|
@@ -113,7 +114,7 @@ css = """
|
|
| 113 |
with gr.Blocks(css=css) as demo:
|
| 114 |
with gr.Column(elem_id="col-container"):
|
| 115 |
gr.Markdown('<img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/qwen_image_logo.png" alt="Qwen-Image Logo" width="400" style="display: block; margin: 0 auto;">')
|
| 116 |
-
gr.Markdown("[Learn more](https://github.com/QwenLM/Qwen-Image) about the Qwen-Image series. Try on [Qwen Chat](https://chat.qwen.ai/), or [download model](https://huggingface.co/Qwen/Qwen-Image) to run locally with ComfyUI or diffusers.")
|
| 117 |
with gr.Row():
|
| 118 |
prompt = gr.Text(
|
| 119 |
label="Prompt",
|
|
|
|
| 75 |
print(f"Actual Prompt: '{prompt}'")
|
| 76 |
print(f"Negative Prompt: '{negative_prompt}'")
|
| 77 |
print(f"Seed: {seed}, Size: {width}x{height}, Steps: {num_inference_steps}, Guidance: {guidance_scale}")
|
| 78 |
+
magic_prompt = "Ultra HD, 4K, cinematic composition"
|
| 79 |
+
prompt = prompt + " " + magic_prompt
|
| 80 |
# Generate the image
|
| 81 |
image = pipe(
|
| 82 |
prompt=prompt,
|
|
|
|
| 114 |
with gr.Blocks(css=css) as demo:
|
| 115 |
with gr.Column(elem_id="col-container"):
|
| 116 |
gr.Markdown('<img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/qwen_image_logo.png" alt="Qwen-Image Logo" width="400" style="display: block; margin: 0 auto;">')
|
| 117 |
+
gr.Markdown("[Learn more](https://github.com/QwenLM/Qwen-Image) about the Qwen-Image series. Try on [Qwen Chat](https://chat.qwen.ai/), or [download model](https://huggingface.co/Qwen/Qwen-Image) to run locally with ComfyUI or diffusers. <br /> **This version does not run the prompt polisher, but does suffix the 'Magic Prompt' and improve parameter descriptions**.")
|
| 118 |
with gr.Row():
|
| 119 |
prompt = gr.Text(
|
| 120 |
label="Prompt",
|