Spaces:
Running
Running
Tobias Cornille
commited on
Commit
·
7cb924a
1
Parent(s):
5c804a1
Update index.js
Browse files
index.js
CHANGED
|
@@ -46,7 +46,7 @@ async function detect(img) {
|
|
| 46 |
const candidate_labels = ['human face', 'rocket', 'helmet', 'american flag'];
|
| 47 |
const output = await detector(img, candidate_labels);
|
| 48 |
status.textContent = '';
|
| 49 |
-
|
| 50 |
|
| 51 |
}
|
| 52 |
|
|
|
|
| 46 |
const candidate_labels = ['human face', 'rocket', 'helmet', 'american flag'];
|
| 47 |
const output = await detector(img, candidate_labels);
|
| 48 |
status.textContent = '';
|
| 49 |
+
output.forEach(renderBox);
|
| 50 |
|
| 51 |
}
|
| 52 |
|