Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +2 -2
index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
<!-- TensorFlow.js + TFLite WASM backend (correct CDN paths) -->
|
| 8 |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core@4.22.0/dist/tf-core.min.js"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-cpu@4.22.0/dist/tf-backend-cpu.min.js"></script>
|
| 10 |
-
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-tflite/dist/tf-tflite.min.js"></script>
|
| 11 |
|
| 12 |
<style>
|
| 13 |
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
@@ -125,7 +125,7 @@ const placeholder = document.getElementById('placeholder');
|
|
| 125 |
function setWasmPath() {
|
| 126 |
// The WASM files are in the same CDN directory as tf-tflite.min.js
|
| 127 |
// jsDelivr resolves them automatically, but we set explicitly for safety
|
| 128 |
-
const base = 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-tflite/
|
| 129 |
try { tflite.setWasmPath(base); } catch(e) {}
|
| 130 |
}
|
| 131 |
|
|
|
|
| 7 |
<!-- TensorFlow.js + TFLite WASM backend (correct CDN paths) -->
|
| 8 |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core@4.22.0/dist/tf-core.min.js"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-cpu@4.22.0/dist/tf-backend-cpu.min.js"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-tflite@0.0.1-alpha.10/dist/tf-tflite.min.js"></script>
|
| 11 |
|
| 12 |
<style>
|
| 13 |
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
| 125 |
function setWasmPath() {
|
| 126 |
// The WASM files are in the same CDN directory as tf-tflite.min.js
|
| 127 |
// jsDelivr resolves them automatically, but we set explicitly for safety
|
| 128 |
+
const base = 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-tflite@0.0.1-alpha.10/wasm/';
|
| 129 |
try { tflite.setWasmPath(base); } catch(e) {}
|
| 130 |
}
|
| 131 |
|