MohamedRashad commited on
Commit
bdb3667
·
1 Parent(s): 1fa4539

Update layout of seed input in app.py to ensure equal height in row

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -342,7 +342,7 @@ with block:
342
  use_teacache = gr.Checkbox(label='Use TeaCache', value=True, info='Faster speed, but often makes hands and fingers slightly worse.')
343
 
344
  n_prompt = gr.Textbox(label="Negative Prompt", value="", visible=False) # Not used
345
- with gr.Row():
346
  seed = gr.Number(label="Seed", value=31337, precision=0, scale=4)
347
  random_seed_button = gr.Button(value="🔁", variant="primary", scale=1)
348
  random_seed_button.click(lambda: int(torch.randint(0, 2**32 - 1, (1,)).item()), inputs=[], outputs=seed, show_progress=False, queue=False)
 
342
  use_teacache = gr.Checkbox(label='Use TeaCache', value=True, info='Faster speed, but often makes hands and fingers slightly worse.')
343
 
344
  n_prompt = gr.Textbox(label="Negative Prompt", value="", visible=False) # Not used
345
+ with gr.Row(equal_height=True):
346
  seed = gr.Number(label="Seed", value=31337, precision=0, scale=4)
347
  random_seed_button = gr.Button(value="🔁", variant="primary", scale=1)
348
  random_seed_button.click(lambda: int(torch.randint(0, 2**32 - 1, (1,)).item()), inputs=[], outputs=seed, show_progress=False, queue=False)