John6666 commited on
Commit
4300c43
·
verified ·
1 Parent(s): 4afda85

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -29
app.py CHANGED
@@ -305,35 +305,34 @@ with gr.Blocks(fill_width=True, elem_id="container", css=css, delete_cache=(60,
305
  adetailer_verbose = gr.Checkbox(label="Verbose", value=False)
306
  # Adetailer Sampler
307
  adetailer_sampler = gr.Dropdown(label="Adetailer sampler:", choices=POST_PROCESSING_SAMPLER, value=POST_PROCESSING_SAMPLER[0])
308
- with gr.Row():
309
- with gr.Accordion("Detailfix A", open=True, visible=True):
310
- # Adetailer A
311
- adetailer_active_a = gr.Checkbox(label="Enable Adetailer A", value=False)
312
- prompt_ad_a = gr.Textbox(label="Main prompt", placeholder="Main prompt will be use", lines=3)
313
- negative_prompt_ad_a = gr.Textbox(label="Negative prompt", placeholder="Main negative prompt will be use", lines=3)
314
- with gr.Row():
315
- strength_ad_a = gr.Number(label="Strength:", value=0.35, step=0.01, minimum=0.01, maximum=1.0)
316
- face_detector_ad_a = gr.Checkbox(label="Face detector", value=False)
317
- person_detector_ad_a = gr.Checkbox(label="Person detector", value=True)
318
- hand_detector_ad_a = gr.Checkbox(label="Hand detector", value=False)
319
- with gr.Row():
320
- mask_dilation_a = gr.Number(label="Mask dilation:", value=4, minimum=1)
321
- mask_blur_a = gr.Number(label="Mask blur:", value=4, minimum=1)
322
- mask_padding_a = gr.Number(label="Mask padding:", value=32, minimum=1)
323
- with gr.Accordion("Detailfix B", open=True, visible=True):
324
- # Adetailer B
325
- adetailer_active_b = gr.Checkbox(label="Enable Adetailer B", value=False)
326
- prompt_ad_b = gr.Textbox(label="Main prompt", placeholder="Main prompt will be use", lines=3)
327
- negative_prompt_ad_b = gr.Textbox(label="Negative prompt", placeholder="Main negative prompt will be use", lines=3)
328
- with gr.Row():
329
- strength_ad_b = gr.Number(label="Strength:", value=0.35, step=0.01, minimum=0.01, maximum=1.0)
330
- face_detector_ad_b = gr.Checkbox(label="Face detector", value=False)
331
- person_detector_ad_b = gr.Checkbox(label="Person detector", value=True)
332
- hand_detector_ad_b = gr.Checkbox(label="Hand detector", value=False)
333
- with gr.Row():
334
- mask_dilation_b = gr.Number(label="Mask dilation:", value=4, minimum=1)
335
- mask_blur_b = gr.Number(label="Mask blur:", value=4, minimum=1)
336
- mask_padding_b = gr.Number(label="Mask padding:", value=32, minimum=1)
337
 
338
  with gr.Tab("Translation Settings"):
339
  chatbot = gr.Chatbot(render_markdown=False, visible=False) # component for auto-translation
 
305
  adetailer_verbose = gr.Checkbox(label="Verbose", value=False)
306
  # Adetailer Sampler
307
  adetailer_sampler = gr.Dropdown(label="Adetailer sampler:", choices=POST_PROCESSING_SAMPLER, value=POST_PROCESSING_SAMPLER[0])
308
+ with gr.Accordion("Detailfix A", open=True, visible=True):
309
+ # Adetailer A
310
+ adetailer_active_a = gr.Checkbox(label="Enable Adetailer A", value=False)
311
+ prompt_ad_a = gr.Textbox(label="Main prompt", placeholder="Main prompt will be use", lines=3)
312
+ negative_prompt_ad_a = gr.Textbox(label="Negative prompt", placeholder="Main negative prompt will be use", lines=3)
313
+ with gr.Row():
314
+ strength_ad_a = gr.Number(label="Strength:", value=0.35, step=0.01, minimum=0.01, maximum=1.0)
315
+ face_detector_ad_a = gr.Checkbox(label="Face detector", value=False)
316
+ person_detector_ad_a = gr.Checkbox(label="Person detector", value=True)
317
+ hand_detector_ad_a = gr.Checkbox(label="Hand detector", value=False)
318
+ with gr.Row():
319
+ mask_dilation_a = gr.Number(label="Mask dilation:", value=4, minimum=1)
320
+ mask_blur_a = gr.Number(label="Mask blur:", value=4, minimum=1)
321
+ mask_padding_a = gr.Number(label="Mask padding:", value=32, minimum=1)
322
+ with gr.Accordion("Detailfix B", open=True, visible=True):
323
+ # Adetailer B
324
+ adetailer_active_b = gr.Checkbox(label="Enable Adetailer B", value=False)
325
+ prompt_ad_b = gr.Textbox(label="Main prompt", placeholder="Main prompt will be use", lines=3)
326
+ negative_prompt_ad_b = gr.Textbox(label="Negative prompt", placeholder="Main negative prompt will be use", lines=3)
327
+ with gr.Row():
328
+ strength_ad_b = gr.Number(label="Strength:", value=0.35, step=0.01, minimum=0.01, maximum=1.0)
329
+ face_detector_ad_b = gr.Checkbox(label="Face detector", value=False)
330
+ person_detector_ad_b = gr.Checkbox(label="Person detector", value=True)
331
+ hand_detector_ad_b = gr.Checkbox(label="Hand detector", value=False)
332
+ with gr.Row():
333
+ mask_dilation_b = gr.Number(label="Mask dilation:", value=4, minimum=1)
334
+ mask_blur_b = gr.Number(label="Mask blur:", value=4, minimum=1)
335
+ mask_padding_b = gr.Number(label="Mask padding:", value=32, minimum=1)
 
336
 
337
  with gr.Tab("Translation Settings"):
338
  chatbot = gr.Chatbot(render_markdown=False, visible=False) # component for auto-translation