Spaces:
Running
Running
Set static app file
Browse files
README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
---
|
| 2 |
title: Pi CLI Web
|
| 3 |
sdk: static
|
|
|
|
| 4 |
fullWidth: true
|
| 5 |
models:
|
| 6 |
- onnx-community/Qwen2.5-Coder-0.5B-Instruct
|
|
@@ -43,7 +44,7 @@ The app uses:
|
|
| 43 |
|
| 44 |
Vite serves the app with COOP/COEP headers and boots WebContainers with `coep: "credentialless"`. The deterministic test model is available at `http://localhost:5173/?mode=mock&device=wasm` for fast harness and sandbox smoke tests without downloading an ONNX model. The local model defaults to a tested 256-token generation budget in WASM mode and supports budgets up to 8192 through the `tokens=` query parameter and `/settings tokens=<n>`.
|
| 45 |
|
| 46 |
-
The Static Space
|
| 47 |
|
| 48 |
## Test the CLI Web App
|
| 49 |
|
|
|
|
| 1 |
---
|
| 2 |
title: Pi CLI Web
|
| 3 |
sdk: static
|
| 4 |
+
app_file: index.html
|
| 5 |
fullWidth: true
|
| 6 |
models:
|
| 7 |
- onnx-community/Qwen2.5-Coder-0.5B-Instruct
|
|
|
|
| 44 |
|
| 45 |
Vite serves the app with COOP/COEP headers and boots WebContainers with `coep: "credentialless"`. The deterministic test model is available at `http://localhost:5173/?mode=mock&device=wasm` for fast harness and sandbox smoke tests without downloading an ONNX model. The local model defaults to a tested 256-token generation budget in WASM mode and supports budgets up to 8192 through the `tokens=` query parameter and `/settings tokens=<n>`.
|
| 46 |
|
| 47 |
+
The Static Space points `app_file` at `index.html`. The app is built with `npm run build`; the generated `dist/index.html` and `dist/assets/` are uploaded to the Space root as `index.html` and `assets/`.
|
| 48 |
|
| 49 |
## Test the CLI Web App
|
| 50 |
|