ereniko commited on
Commit
338fca4
·
unverified ·
1 Parent(s): 46d9e41

v0.8.1: enable Sign in with Hugging Face

Browse files

Source: github.com/erinoooo/LocalWebAgent@4315072

Files changed (2) hide show
  1. js/config.js +2 -2
  2. sw.js +1 -1
js/config.js CHANGED
@@ -1,5 +1,5 @@
1
  // Central configuration. Everything that pins a version or a location lives here.
2
- export const APP_VERSION = "0.8.0";
3
 
4
  // --- Local language models (loaded from the Hugging Face Hub, cached in Cache Storage) ---
5
  // Each runs on WebGPU through transformers.js. `chunks` is how many external weight files
@@ -122,7 +122,7 @@ export const hubUrl = (m, file) => `https://huggingface.co/${m.repo}/resolve/mai
122
  // Face". It is public (the flow uses PKCE, no secret). Leave empty to fall back to the ID
123
  // Hugging Face injects into Spaces that set hf_oauth: true; with neither, only access
124
  // tokens work.
125
- export const HF_OAUTH_CLIENT_ID = "";
126
 
127
  // --- CheerpX (WebVM engine). Proprietary: loaded from Leaning Technologies' CDN,
128
  // never redistributed by this Space. The visitor's browser caches it for offline use.
 
1
  // Central configuration. Everything that pins a version or a location lives here.
2
+ export const APP_VERSION = "0.8.1";
3
 
4
  // --- Local language models (loaded from the Hugging Face Hub, cached in Cache Storage) ---
5
  // Each runs on WebGPU through transformers.js. `chunks` is how many external weight files
 
122
  // Face". It is public (the flow uses PKCE, no secret). Leave empty to fall back to the ID
123
  // Hugging Face injects into Spaces that set hf_oauth: true; with neither, only access
124
  // tokens work.
125
+ export const HF_OAUTH_CLIENT_ID = "0dd5195d-0984-42b4-8aa0-d8c87d236bd5";
126
 
127
  // --- CheerpX (WebVM engine). Proprietary: loaded from Leaning Technologies' CDN,
128
  // never redistributed by this Space. The visitor's browser caches it for offline use.
sw.js CHANGED
@@ -6,7 +6,7 @@
6
  // (__vm__/disk.ext2), backed by the chunks the setup screen stored in Cache Storage.
7
  // 4. Adds the cross-origin isolation headers (COOP/COEP) that SharedArrayBuffer,
8
  // CheerpX and multi-threaded WASM need, even when a host forgets to send them.
9
- const SHELL_VERSION = "lwa-shell-0.8.0";
10
  const CX_ORIGIN = "https://cxrtnc.leaningtech.com";
11
  const CX_CACHE_PREFIX = "lwa-cheerpx-";
12
  const DISK_CACHE = "lwa-disk";
 
6
  // (__vm__/disk.ext2), backed by the chunks the setup screen stored in Cache Storage.
7
  // 4. Adds the cross-origin isolation headers (COOP/COEP) that SharedArrayBuffer,
8
  // CheerpX and multi-threaded WASM need, even when a host forgets to send them.
9
+ const SHELL_VERSION = "lwa-shell-0.8.1";
10
  const CX_ORIGIN = "https://cxrtnc.leaningtech.com";
11
  const CX_CACHE_PREFIX = "lwa-cheerpx-";
12
  const DISK_CACHE = "lwa-disk";