tombetthauser commited on
Commit
0e0982f
Β·
1 Parent(s): 55cea27

Update app.py

Browse files

Limited size sliders

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -164,9 +164,9 @@ with gr.Blocks(css=".gradio-container {max-width: 650px}") as dropdown_tab:
164
  steps = gr.Slider(1, 100, label="inference steps", dtype=int, value=default_steps, step=1, interactive=True)
165
  with gr.Row():
166
  with gr.Column():
167
- height = gr.Slider(50, 3500, label="height", dtype=int, value=default_pixel, step=1, interactive=True)
168
  with gr.Column():
169
- width = gr.Slider(50, 3500, label="width", dtype=int, value=default_pixel, step=1, interactive=True)
170
  gr.Markdown("<u>heads-up</u>: height multiplied by width should not exceed about 195,000 or an error will occur so don't go too nuts")
171
 
172
  go_button = gr.Button("generate image", elem_id="go-button")
 
164
  steps = gr.Slider(1, 100, label="inference steps", dtype=int, value=default_steps, step=1, interactive=True)
165
  with gr.Row():
166
  with gr.Column():
167
+ height = gr.Slider(1, 768, label="height", dtype=int, value=default_pixel, step=1, interactive=True)
168
  with gr.Column():
169
+ width = gr.Slider(1, 768, label="width", dtype=int, value=default_pixel, step=1, interactive=True)
170
  gr.Markdown("<u>heads-up</u>: height multiplied by width should not exceed about 195,000 or an error will occur so don't go too nuts")
171
 
172
  go_button = gr.Button("generate image", elem_id="go-button")