Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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}")
|