stefanbenten commited on
Commit
edf0815
1 Parent(s): 5bb086c

app.py: allow custom resolutions

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -129,9 +129,9 @@ with gr.Blocks(css=css) as demo:
129
  steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
130
 
131
  with gr.Row():
132
- with gr.Column(scale=1):
133
- width = gr.Slider(label="Width", minimum=1024, maximum=1024, value=1024, step=8)
134
- height = gr.Slider(label="Height", minimum=1024, maximum=1024, value=1024, step=8)
135
 
136
  with gr.Column(scale=1):
137
  batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
 
129
  steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
130
 
131
  with gr.Row():
132
+ with gr.Column(label="Resolution - Max: 1MegaPixel" scale=1):
133
+ width = gr.Slider(label="Width", minimum=512, maximum=1536, value=1024, step=8)
134
+ height = gr.Slider(label="Height", minimum=512, maximum=1536, value=1024, step=8)
135
 
136
  with gr.Column(scale=1):
137
  batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)