eadali commited on
Commit
b9532bf
·
1 Parent(s): f1f500c

Fix: Image clear button returns more values than expected

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -451,15 +451,12 @@ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
451
  image_clear_button.click(
452
  fn=lambda: (
453
  None,
454
- False,
455
- "",
456
  DEFAULT_DETECTOR,
457
  DEFAULT_CONFIDENCE_THRESHOLD,
458
  None,
459
  ),
460
  outputs=[
461
  image_input,
462
-
463
  image_model_checkpoint,
464
  image_confidence_threshold,
465
  image_output,
 
451
  image_clear_button.click(
452
  fn=lambda: (
453
  None,
 
 
454
  DEFAULT_DETECTOR,
455
  DEFAULT_CONFIDENCE_THRESHOLD,
456
  None,
457
  ),
458
  outputs=[
459
  image_input,
 
460
  image_model_checkpoint,
461
  image_confidence_threshold,
462
  image_output,