Darius Morawiec commited on
Commit
30c7b4f
·
1 Parent(s): 2c34f26

Remove debug print statement and adjust default confidence threshold to 0.3

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -69,7 +69,6 @@ def detect_objects(image, labels, confidence_threshold):
69
 
70
  detections = []
71
  for model_name in models.keys():
72
- print(f"Running detection with model: {model_name}")
73
  detection = models[model_name].detect(
74
  image,
75
  labels,
@@ -95,7 +94,7 @@ with gr.Blocks(delete_cache=(5, 10)) as demo:
95
  confidence_slider = gr.Slider(
96
  0,
97
  1,
98
- value=0.4,
99
  step=0.01,
100
  interactive=True,
101
  label="Confidence threshold:",
 
69
 
70
  detections = []
71
  for model_name in models.keys():
 
72
  detection = models[model_name].detect(
73
  image,
74
  labels,
 
94
  confidence_slider = gr.Slider(
95
  0,
96
  1,
97
+ value=0.3,
98
  step=0.01,
99
  interactive=True,
100
  label="Confidence threshold:",