Sebastiankay commited on
Commit
b6c98ec
1 Parent(s): fdb1bd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -201,7 +201,7 @@ def process(Prompt, used_model, image_width, image_height, image_ratio, image_se
201
  with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, title=title) as demo:
202
  with gr.Row():
203
  gr.Markdown(""" """)
204
- with gr.Tab("Image Generator"):
205
  with gr.Row():
206
  with gr.Column(scale=2): # min_width=420,
207
  with gr.Row():
@@ -221,9 +221,9 @@ with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, titl
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
- 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")
226
- randomize_seed = gr.Checkbox(label="Randomize seed", value=False)
227
 
228
  with gr.Column(scale=4): # min_width=600,
229
  with gr.Row():
 
201
  with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, title=title) as demo:
202
  with gr.Row():
203
  gr.Markdown(""" """)
204
+ with gr.Tab("Bilder Builder"):
205
  with gr.Row():
206
  with gr.Column(scale=2): # min_width=420,
207
  with gr.Row():
 
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
 
228
  with gr.Column(scale=4): # min_width=600,
229
  with gr.Row():