Spaces:
Running
Running
Tobias Cornille
commited on
Commit
·
d241411
1
Parent(s):
9620a3b
Update index.js
Browse files
index.js
CHANGED
@@ -43,8 +43,8 @@ async function detect(img) {
|
|
43 |
|
44 |
status.textContent = 'Analysing...';
|
45 |
const candidate_labels = ['human face', 'rocket', 'helmet', 'american flag'];
|
46 |
-
const output = await detector(
|
47 |
-
console.error(output);
|
48 |
status.textContent = '';
|
49 |
output.forEach(renderBox);
|
50 |
}
|
|
|
43 |
|
44 |
status.textContent = 'Analysing...';
|
45 |
const candidate_labels = ['human face', 'rocket', 'helmet', 'american flag'];
|
46 |
+
const output = await detector(img, candidate_labels);
|
47 |
+
console.error(img, output);
|
48 |
status.textContent = '';
|
49 |
output.forEach(renderBox);
|
50 |
}
|