Spaces:
Runtime error
Runtime error
HuggingFace-SK
commited on
Commit
·
1f71774
1
Parent(s):
8f12303
check for tflite model before enabling cam
Browse files
templates/browser-detect.html
CHANGED
|
@@ -761,8 +761,9 @@
|
|
| 761 |
}
|
| 762 |
// Enable the live webcam view and start detection.
|
| 763 |
function enableCam(event) {
|
| 764 |
-
if (!handLandmarker) {
|
| 765 |
console.log("Wait! objectDetector not loaded yet.");
|
|
|
|
| 766 |
return;
|
| 767 |
}
|
| 768 |
if (webcamRunning === true) {
|
|
|
|
| 761 |
}
|
| 762 |
// Enable the live webcam view and start detection.
|
| 763 |
function enableCam(event) {
|
| 764 |
+
if (!handLandmarker || !letterDetector) {
|
| 765 |
console.log("Wait! objectDetector not loaded yet.");
|
| 766 |
+
document.getElementById('webcamButton').innerHTML='<span>Retry</span>'
|
| 767 |
return;
|
| 768 |
}
|
| 769 |
if (webcamRunning === true) {
|