jiuface commited on
Commit
65123f2
1 Parent(s): 98795d7
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -300,7 +300,7 @@ def process(
300
  result = {"status": "success", "message": "upload image success", "url": url}
301
  else:
302
  result = {"status": "success", "message": "Image generated but not uploaded"}
303
-
304
  final_images = []
305
  final_images.append(image)
306
  final_images.append(mask)
@@ -385,20 +385,20 @@ with gr.Blocks() as demo:
385
 
386
  guidance_scale = gr.Slider(
387
  label="guidance_scale",
388
- info="guidance_scale`.",
389
- minimum=0,
390
- maximum=1,
391
  step=0.1,
392
  value=3.5,
393
  )
394
 
395
  controlnet_conditioning_scale = gr.Slider(
396
  label="controlnet_conditioning_scale",
397
- info="controlnet_conditioning_scale",
398
- minimum=1,
399
- maximum=10,
400
  step=0.1,
401
- value=4,
402
  )
403
 
404
  with gr.Row():
 
300
  result = {"status": "success", "message": "upload image success", "url": url}
301
  else:
302
  result = {"status": "success", "message": "Image generated but not uploaded"}
303
+
304
  final_images = []
305
  final_images.append(image)
306
  final_images.append(mask)
 
385
 
386
  guidance_scale = gr.Slider(
387
  label="guidance_scale",
388
+ info="Guidance scale.",
389
+ minimum=0.1,
390
+ maximum=10,
391
  step=0.1,
392
  value=3.5,
393
  )
394
 
395
  controlnet_conditioning_scale = gr.Slider(
396
  label="controlnet_conditioning_scale",
397
+ info="ControlNet strength, depth works best at 0.2, canny works best at 0.4. Recommended range is 0.3-0.8",
398
+ minimum=0.1,
399
+ maximum=1,
400
  step=0.1,
401
+ value=0.4,
402
  )
403
 
404
  with gr.Row():