QJerry commited on
Commit
dc47b30
·
verified ·
1 Parent(s): c2e58d6

Update app.py

Browse files

Fix 16:9 issue (divided by 16 pipeline assertion), Update widget name for clarification for reso grid.

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -56,8 +56,8 @@ RES_CHOICES = {
56
  "1104x1472 ( 3:4 )",
57
  "1536x1024 ( 3:2 )",
58
  "1024x1536 ( 2:3 )",
59
- "1600x900 ( 16:9 )",
60
- "900x1600 ( 9:16 )",
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="Resolution")
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)