Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse filesFix 16:9 issue (divided by 16 pipeline assertion), Update widget name for clarification for reso grid.
app.py
CHANGED
|
@@ -56,8 +56,8 @@ RES_CHOICES = {
|
|
| 56 |
"1104x1472 ( 3:4 )",
|
| 57 |
"1536x1024 ( 3:2 )",
|
| 58 |
"1024x1536 ( 2:3 )",
|
| 59 |
-
"
|
| 60 |
-
"
|
| 61 |
"1680x720 ( 21:9 )",
|
| 62 |
"720x1680 ( 9:21 )",
|
| 63 |
],
|
|
@@ -435,7 +435,7 @@ with gr.Blocks(title="Z-Image Demo") as demo:
|
|
| 435 |
res_cat = gr.Dropdown(value=1024, choices=choices, label="Resolution Category")
|
| 436 |
|
| 437 |
initial_res_choices = RES_CHOICES["1024"]
|
| 438 |
-
resolution = gr.Dropdown(value=initial_res_choices[0], choices=initial_res_choices, label="
|
| 439 |
|
| 440 |
with gr.Row():
|
| 441 |
seed = gr.Number(label="Seed", value=-1, precision=0)
|
|
|
|
| 56 |
"1104x1472 ( 3:4 )",
|
| 57 |
"1536x1024 ( 3:2 )",
|
| 58 |
"1024x1536 ( 2:3 )",
|
| 59 |
+
"1600x896 ( 16:9 )",
|
| 60 |
+
"896x1600 ( 9:16 )", # not 900 coz divided by 16 needed
|
| 61 |
"1680x720 ( 21:9 )",
|
| 62 |
"720x1680 ( 9:21 )",
|
| 63 |
],
|
|
|
|
| 435 |
res_cat = gr.Dropdown(value=1024, choices=choices, label="Resolution Category")
|
| 436 |
|
| 437 |
initial_res_choices = RES_CHOICES["1024"]
|
| 438 |
+
resolution = gr.Dropdown(value=initial_res_choices[0], choices=initial_res_choices, label="Width x Height (Ratio)")
|
| 439 |
|
| 440 |
with gr.Row():
|
| 441 |
seed = gr.Number(label="Seed", value=-1, precision=0)
|