Spaces:
Sleeping
Sleeping
Update static/script.js
Browse files- static/script.js +2 -2
static/script.js
CHANGED
|
@@ -31,10 +31,10 @@ function startPrediction() {
|
|
| 31 |
|
| 32 |
// Simulate finger detection (random for demo)
|
| 33 |
const fingerCount = Math.floor(Math.random() * 5) + 1; // Random 1-5 fingers
|
| 34 |
-
fingersDisplay.textContent = Fingers Detected: ${fingerCount};
|
| 35 |
|
| 36 |
// Mock prediction based on finger count
|
| 37 |
-
predictionText.textContent = Prediction: Sign ${fingerCount};
|
| 38 |
|
| 39 |
// Optional: Draw circles for fingers (visualization)
|
| 40 |
ctx.strokeStyle = '#ff4444';
|
|
|
|
| 31 |
|
| 32 |
// Simulate finger detection (random for demo)
|
| 33 |
const fingerCount = Math.floor(Math.random() * 5) + 1; // Random 1-5 fingers
|
| 34 |
+
fingersDisplay.textContent = `Fingers Detected: ${fingerCount}`;
|
| 35 |
|
| 36 |
// Mock prediction based on finger count
|
| 37 |
+
predictionText.textContent = `Prediction: Sign ${fingerCount}`;
|
| 38 |
|
| 39 |
// Optional: Draw circles for fingers (visualization)
|
| 40 |
ctx.strokeStyle = '#ff4444';
|