nvn04 commited on
Commit
77ec430
·
verified ·
1 Parent(s): 1920e03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -27
app.py CHANGED
@@ -425,35 +425,36 @@ def app_gradio():
425
 
426
  # ===============================================================
427
  with gr.Row():
428
- # Result pennal
429
- result_image = gr.Image(interactive=False, label="Result")
430
-
431
- # Submit button
432
- submit = gr.Button("Submit")
433
- gr.Markdown(
434
- '<center><span style="color: #FF0000">!!! Click only Once, Wait for Delay !!!</span></center>'
435
- )
436
- # Advance options setting
437
- gr.Markdown(
438
- '<span style="color: #808080; font-size: small;">Advanced options can adjust details:<br>1. `Inference Step` may enhance details;<br>2. `CFG` is highly correlated with saturation;<br>3. `Random seed` may improve pseudo-shadow.</span>'
439
- )
440
- with gr.Accordion("Advanced Options", open=False):
441
- num_inference_steps = gr.Slider(
442
- label="Inference Step", minimum=10, maximum=100, step=5, value=50
443
- )
444
- # Guidence Scale
445
- guidance_scale = gr.Slider(
446
- label="CFG Strenth", minimum=0.0, maximum=7.5, step=0.5, value=2.5
447
- )
448
- # Random Seed
449
- seed = gr.Slider(
450
- label="Seed", minimum=-1, maximum=10000, step=1, value=42
451
  )
452
- show_type = gr.Radio(
453
- label="Show Type",
454
- choices=["result only", "input & result", "input & mask & result"],
455
- value="result only",
456
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457
 
458
  # event listener for changes to the image_path input component. Whenever the value of image_path changes (e.g., when a new image is uploaded or selected)
459
  image_path.change(
 
425
 
426
  # ===============================================================
427
  with gr.Row():
428
+ with gr.Column():
429
+ # Result pennal
430
+ result_image = gr.Image(interactive=False, label="Result")
431
+
432
+ # Submit button
433
+ submit = gr.Button("Submit")
434
+ gr.Markdown(
435
+ '<center><span style="color: #FF0000">!!! Click only Once, Wait for Delay !!!</span></center>'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
436
  )
437
+ # Advance options setting
438
+ gr.Markdown(
439
+ '<span style="color: #808080; font-size: small;">Advanced options can adjust details:<br>1. `Inference Step` may enhance details;<br>2. `CFG` is highly correlated with saturation;<br>3. `Random seed` may improve pseudo-shadow.</span>'
 
440
  )
441
+ with gr.Accordion("Advanced Options", open=False):
442
+ num_inference_steps = gr.Slider(
443
+ label="Inference Step", minimum=10, maximum=100, step=5, value=50
444
+ )
445
+ # Guidence Scale
446
+ guidance_scale = gr.Slider(
447
+ label="CFG Strenth", minimum=0.0, maximum=7.5, step=0.5, value=2.5
448
+ )
449
+ # Random Seed
450
+ seed = gr.Slider(
451
+ label="Seed", minimum=-1, maximum=10000, step=1, value=42
452
+ )
453
+ show_type = gr.Radio(
454
+ label="Show Type",
455
+ choices=["result only", "input & result", "input & mask & result"],
456
+ value="result only",
457
+ )
458
 
459
  # event listener for changes to the image_path input component. Whenever the value of image_path changes (e.g., when a new image is uploaded or selected)
460
  image_path.change(