ai-forever commited on
Commit
0d1b52c
·
verified ·
1 Parent(s): b8cc2cc

add choices of image resolution

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -99,18 +99,23 @@ iface = gr.Interface(
99
  value="English"
100
  ),
101
  gr.Slider(
102
- label="number of diffusion steps",
103
  minimum=2,
104
  maximum=50,
105
  step=1,
106
  value=50,
107
  ),
108
- gr.Slider(
109
- label="scaling factor for image reduction",
110
- minimum=0.25,
111
- maximum=1.0,
112
- step=0.05,
113
- value=1.0,
 
 
 
 
 
114
  )
115
  ],
116
  outputs=gr.File(
 
99
  value="English"
100
  ),
101
  gr.Slider(
102
+ label="Number of diffusion steps",
103
  minimum=2,
104
  maximum=50,
105
  step=1,
106
  value=50,
107
  ),
108
+ # gr.Slider(
109
+ # label="scaling factor for image reduction",
110
+ # minimum=0.25,
111
+ # maximum=1.0,
112
+ # step=0.05,
113
+ # value=1.0,
114
+ # )
115
+ gr.Dropdown(
116
+ label="Image resolution",
117
+ choices=["192x336 & 256x256", "384x672 & 512x512", "576x1008 & 768x768", "768x1344 & 1024x1024"],
118
+ value="768x1344 & 1024x1024"
119
  )
120
  ],
121
  outputs=gr.File(