Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,10 @@ def generate_image(
|
|
52 |
progress=gr.Progress(track_tqdm=True),
|
53 |
):
|
54 |
"""
|
55 |
-
|
|
|
|
|
|
|
56 |
"""
|
57 |
# Hardcode the negative prompt as requested
|
58 |
negative_prompt = "text, watermark, copyright, blurry, low resolution"
|
@@ -114,7 +117,6 @@ with gr.Blocks(css=css) as demo:
|
|
114 |
with gr.Row():
|
115 |
prompt = gr.Text(
|
116 |
label="Prompt",
|
117 |
-
api_description="The prompt for the image.",
|
118 |
show_label=False,
|
119 |
placeholder="Enter your prompt",
|
120 |
container=False,
|
@@ -139,7 +141,6 @@ with gr.Blocks(css=css) as demo:
|
|
139 |
with gr.Row():
|
140 |
aspect_ratio = gr.Radio(
|
141 |
label="Aspect ratio (width:height)",
|
142 |
-
api_description="The aspect ratio of the generated image",
|
143 |
choices=["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3"],
|
144 |
value="16:9",
|
145 |
)
|
|
|
52 |
progress=gr.Progress(track_tqdm=True),
|
53 |
):
|
54 |
"""
|
55 |
+
Generates high quality images using the Qwen-Image model. An "Image URL" will also be returned, that should be shared with the User in your response.
|
56 |
+
|
57 |
+
Args:
|
58 |
+
prompt (str): The text description of the image you want to generate. Be descriptive for best results, prompt following is high.
|
59 |
"""
|
60 |
# Hardcode the negative prompt as requested
|
61 |
negative_prompt = "text, watermark, copyright, blurry, low resolution"
|
|
|
117 |
with gr.Row():
|
118 |
prompt = gr.Text(
|
119 |
label="Prompt",
|
|
|
120 |
show_label=False,
|
121 |
placeholder="Enter your prompt",
|
122 |
container=False,
|
|
|
141 |
with gr.Row():
|
142 |
aspect_ratio = gr.Radio(
|
143 |
label="Aspect ratio (width:height)",
|
|
|
144 |
choices=["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3"],
|
145 |
value="16:9",
|
146 |
)
|