Fabrice-TIERCELIN commited on
Commit
6d0f648
1 Parent(s): 4361adb

Put the "Randomize seed" and "Seed" option close and highlight the main action

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -136,7 +136,7 @@ with gr.Blocks(css=css) as demo:
136
  placeholder="Enter your prompt",
137
  container=False,
138
  )
139
- run_button = gr.Button("Run", scale=0)
140
  result = gr.Gallery(label="Result", elem_id="gallery", show_label=False)
141
  with gr.Accordion("Advanced options", open=False):
142
  with gr.Row():
@@ -147,13 +147,6 @@ with gr.Blocks(css=css) as demo:
147
  value = "deformed, distorted, disfigured, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, mutated hands and fingers, disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, NSFW",
148
  visible=True,
149
  )
150
- seed = gr.Slider(
151
- label="Seed",
152
- minimum=0,
153
- maximum=MAX_SEED,
154
- step=1,
155
- value=0,
156
- )
157
 
158
  steps = gr.Slider(
159
  label="Steps",
@@ -169,7 +162,15 @@ with gr.Blocks(css=css) as demo:
169
  step=1,
170
  value=1,
171
  )
 
172
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
 
 
 
 
 
 
 
173
  with gr.Row(visible=True):
174
  width = gr.Slider(
175
  label="Width",
 
136
  placeholder="Enter your prompt",
137
  container=False,
138
  )
139
+ run_button = gr.Button("Run", variant = "primary", scale=0)
140
  result = gr.Gallery(label="Result", elem_id="gallery", show_label=False)
141
  with gr.Accordion("Advanced options", open=False):
142
  with gr.Row():
 
147
  value = "deformed, distorted, disfigured, poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, mutated hands and fingers, disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, NSFW",
148
  visible=True,
149
  )
 
 
 
 
 
 
 
150
 
151
  steps = gr.Slider(
152
  label="Steps",
 
162
  step=1,
163
  value=1,
164
  )
165
+
166
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
167
+ seed = gr.Slider(
168
+ label="Seed",
169
+ minimum=0,
170
+ maximum=MAX_SEED,
171
+ step=1,
172
+ value=0,
173
+ )
174
  with gr.Row(visible=True):
175
  width = gr.Slider(
176
  label="Width",