Javedalam commited on
Commit
de5ca6f
·
verified ·
1 Parent(s): d5183db

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -44,7 +44,7 @@
44
  backendEl.textContent = device.toUpperCase();
45
  envEl.textContent = hasWebGPU ? '✅ WebGPU detected (will fallback if slow)…' : '⚠️ Using WASM (CPU).';
46
 
47
- // ---------- SINGLE FIX: force ?download=1 on HF "resolve" URLs ----------
48
  const _fetch = window.fetch.bind(window);
49
  window.fetch = (url, opts) => {
50
  try {
 
44
  backendEl.textContent = device.toUpperCase();
45
  envEl.textContent = hasWebGPU ? '✅ WebGPU detected (will fallback if slow)…' : '⚠️ Using WASM (CPU).';
46
 
47
+ // --- SINGLE FIX: force ?download=1 on HF "resolve" URLs to avoid 401s ---
48
  const _fetch = window.fetch.bind(window);
49
  window.fetch = (url, opts) => {
50
  try {