Sebastiankay commited on
Commit
95d561f
1 Parent(s): b6c98ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -215,13 +215,13 @@ with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, titl
215
  with gr.Column(scale=1):
216
  with gr.Row():
217
  select_model = gr.Dropdown(choices=["FLUX", "FLUX-API-OLD", "FLUX-Realism", "FLUX-Pixel", "ANY-DARK", "Stable-Diffusion-XL-Lightning", "Stable-Diffusion-XL-Base"], value="FLUX", label="Model", elem_id="select_model", elem_classes="select-model")
218
- # with gr.Row():
219
- image_width = gr.Number(label="Breite", minimum=256, maximum=MAX_IMAGE_SIZE, value=1024, step=128, elem_id="image_width_selector", elem_classes="image-width-selector", scale=1, visible=False)
220
- image_height = gr.Number(label="Höhe", minimum=256, maximum=MAX_IMAGE_SIZE, value=683, step=128, elem_id="image_height_selector", elem_classes="image-height-selector", scale=1, visible=False)
221
  with gr.Row():
222
- image_ratio_buttons = gr.Radio(["16:9", "4:3", "3:2", "1:1"], value="3:2", label="Querformat", show_label=True, info="Die gängigsten Seitenverhältnissen.", interactive=True, elem_id="image_ratio_buttons", elem_classes="image-ratio-buttons", container=True, scale=2)
 
 
 
223
  switch_width_height = gr.Button("", size="sm", elem_id="switch_width_height", elem_classes="switch-ratio-btn", variant="primary", scale=1)
224
- with gr.Column():
225
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True, elem_classes="random-seed-cb")
226
  image_seed = gr.Slider(label="Seed", info="Jeder Seed generiert ein anderes Bild mit dem selben Prompt", minimum=0, step=1, value=4321, maximum=MAX_SEED, elem_id="image_seed", elem_classes="image-seed hide-progress", interactive=False)
227
 
 
215
  with gr.Column(scale=1):
216
  with gr.Row():
217
  select_model = gr.Dropdown(choices=["FLUX", "FLUX-API-OLD", "FLUX-Realism", "FLUX-Pixel", "ANY-DARK", "Stable-Diffusion-XL-Lightning", "Stable-Diffusion-XL-Base"], value="FLUX", label="Model", elem_id="select_model", elem_classes="select-model")
 
 
 
218
  with gr.Row():
219
+ image_width = gr.Number(label="Breite", minimum=256, maximum=MAX_IMAGE_SIZE, value=1024, step=128, elem_id="image_width_selector", elem_classes="image-width-selector", scale=1, visible=True)
220
+ image_height = gr.Number(label="Höhe", minimum=256, maximum=MAX_IMAGE_SIZE, value=683, step=128, elem_id="image_height_selector", elem_classes="image-height-selector", scale=1, visible=True)
221
+ with gr.Row():
222
+ image_ratio_buttons = gr.Radio(["9:16", "3:4", "2:3", "1:1"], value="9:16", label="Hochformat", show_label=True, info="Die gängigsten Seitenverhältnissen.", interactive=True, elem_id="image_ratio_buttons", elem_classes="image-ratio-buttons", container=True, scale=2)
223
  switch_width_height = gr.Button("", size="sm", elem_id="switch_width_height", elem_classes="switch-ratio-btn", variant="primary", scale=1)
224
+ with gr.Column():
225
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True, elem_classes="random-seed-cb")
226
  image_seed = gr.Slider(label="Seed", info="Jeder Seed generiert ein anderes Bild mit dem selben Prompt", minimum=0, step=1, value=4321, maximum=MAX_SEED, elem_id="image_seed", elem_classes="image-seed hide-progress", interactive=False)
227