Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
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.
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
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
|