NoahH7 commited on
Commit
df29835
·
verified ·
1 Parent(s): 758e865

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -28,5 +28,6 @@ for score, label, box in zip(results["scores"], results["labels"], results["boxe
28
  f"Detected {model.config.id2label[label.item()]} with confidence "
29
  f"{round(score.item(), 3)} at location {box}"
30
  )
31
- persons++
32
 
 
 
28
  f"Detected {model.config.id2label[label.item()]} with confidence "
29
  f"{round(score.item(), 3)} at location {box}"
30
  )
31
+ persons += 1 # Incrémentation correcte
32
 
33
+ print(f"Total persons detected: {persons}")