Significant commited on
Commit
1e40a7d
·
verified ·
1 Parent(s): 594ab3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -310,9 +310,11 @@ background: linear-gradient(135deg, #CCFED9, #95BAFF);
310
 
311
  #doodle_section, #advanced_section {
312
  display: none !important;
 
 
 
 
313
  }
314
-
315
-
316
 
317
 
318
  footer, [class*="footer"], [class*="api"], [class*="settings"] {
@@ -353,6 +355,7 @@ with gr.Blocks(css=css) as demo:
353
  aspect_ratio = gr.Dropdown(label="Output aspect ratio", choices=ASPECT_RATIO_LABELS, value=DEFAULT_ASPECT_RATIO)
354
  submit = gr.Button("GENERATE" , elem_id="generate_btn")
355
 
 
356
  enable_doodle = gr.Checkbox(
357
  label="Enable Drawing Doodle for Control", value=enable_doodle_arg,
358
  info="After enabling this option, PhotoMaker will generate content based on your doodle on the canvas, driven by the T2I-Adapter (Quality may be decreased)",
 
310
 
311
  #doodle_section, #advanced_section {
312
  display: none !important;
313
+ }
314
+
315
+ #enable_doodle_container {
316
+ display: none !important;
317
  }
 
 
318
 
319
 
320
  footer, [class*="footer"], [class*="api"], [class*="settings"] {
 
355
  aspect_ratio = gr.Dropdown(label="Output aspect ratio", choices=ASPECT_RATIO_LABELS, value=DEFAULT_ASPECT_RATIO)
356
  submit = gr.Button("GENERATE" , elem_id="generate_btn")
357
 
358
+ with gr.Column(elem_id="enable_doodle_container"):
359
  enable_doodle = gr.Checkbox(
360
  label="Enable Drawing Doodle for Control", value=enable_doodle_arg,
361
  info="After enabling this option, PhotoMaker will generate content based on your doodle on the canvas, driven by the T2I-Adapter (Quality may be decreased)",