kadirnar commited on
Commit
d0bcc99
1 Parent(s): 9ff5667

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -37
app.py CHANGED
@@ -276,45 +276,44 @@ with gr.Blocks(css=css) as demo:
276
  with gr.Column():
277
  img2img_output = gr.Gallery(label="Result", elem_id="gallery", show_label=False)
278
  strength = gr.Slider(label="Img2Img Strength", minimum=0.0, maximum=1.0, step=0.01, value=0.8)
279
- with gr.Accordion("Advanced options", open=False):
280
- with gr.Row():
281
- img2img_use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
282
- img2img_negative_prompt = gr.Text(
283
- label="Negative prompt",
284
- max_lines=1,
285
- 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",
286
- visible=True,
287
- )
288
- img2img_seed = gr.Slider(
289
- label="Seed",
290
- minimum=0,
291
- maximum=MAX_SEED,
292
- step=1,
293
- value=0,
294
- )
295
- img2img_steps = gr.Slider(
296
- label="Steps",
297
- minimum=0,
298
- maximum=60,
299
- step=1,
300
- value=25,
301
  )
302
- img2img_number_image = gr.Slider(
303
- label="Number of Images",
304
- minimum=1,
305
- maximum=4,
306
- step=1,
307
- value=1,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
308
  )
309
- img2img_randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
310
- with gr.Row():
311
- img2img_guidance_scale = gr.Slider(
312
- label="Guidance Scale",
313
- minimum=0.1,
314
- maximum=10,
315
- step=0.1,
316
- value=7.0,
317
- )
318
 
319
  img2img_use_negative_prompt.change(
320
  fn=lambda x: gr.update(visible=x),
 
276
  with gr.Column():
277
  img2img_output = gr.Gallery(label="Result", elem_id="gallery", show_label=False)
278
  strength = gr.Slider(label="Img2Img Strength", minimum=0.0, maximum=1.0, step=0.01, value=0.8)
279
+ with gr.Row():
280
+ img2img_use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
281
+ img2img_negative_prompt = gr.Text(
282
+ label="Negative prompt",
283
+ max_lines=1,
284
+ 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",
285
+ visible=True,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  )
287
+ img2img_seed = gr.Slider(
288
+ label="Seed",
289
+ minimum=0,
290
+ maximum=MAX_SEED,
291
+ step=1,
292
+ value=0,
293
+ )
294
+ img2img_steps = gr.Slider(
295
+ label="Steps",
296
+ minimum=0,
297
+ maximum=60,
298
+ step=1,
299
+ value=25,
300
+ )
301
+ img2img_number_image = gr.Slider(
302
+ label="Number of Images",
303
+ minimum=1,
304
+ maximum=4,
305
+ step=1,
306
+ value=1,
307
+ )
308
+ img2img_randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
309
+ with gr.Row():
310
+ img2img_guidance_scale = gr.Slider(
311
+ label="Guidance Scale",
312
+ minimum=0.1,
313
+ maximum=10,
314
+ step=0.1,
315
+ value=7.0,
316
  )
 
 
 
 
 
 
 
 
 
317
 
318
  img2img_use_negative_prompt.change(
319
  fn=lambda x: gr.update(visible=x),