deploy: add built assets for HF static Space serving
Browse files- Set base: "./" in Vite for relative asset paths
- Copy dist/ output to repo root for HF static SDK
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- .gitattributes +1 -0
- assets/index-DXLF5hH7.js +0 -0
- assets/ort-wasm-simd-threaded.asyncify-DFMnNRgU.wasm +3 -0
- index.html +1 -1
- vite.config.ts +1 -0
.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
assets/index-DXLF5hH7.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
assets/ort-wasm-simd-threaded.asyncify-DFMnNRgU.wasm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de8f373400e38d4c253f5c6535be22825b733f5238f50bd331427b6ecb872afd
|
| 3 |
+
size 22498509
|
index.html
CHANGED
|
@@ -5,9 +5,9 @@
|
|
| 5 |
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
<title>QMD Web Demo — In-Browser Hybrid Search</title>
|
|
|
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
<div id="root"></div>
|
| 11 |
-
<script type="module" src="/src/main.tsx"></script>
|
| 12 |
</body>
|
| 13 |
</html>
|
|
|
|
| 5 |
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
<title>QMD Web Demo — In-Browser Hybrid Search</title>
|
| 8 |
+
<script type="module" crossorigin src="./assets/index-DXLF5hH7.js"></script>
|
| 9 |
</head>
|
| 10 |
<body>
|
| 11 |
<div id="root"></div>
|
|
|
|
| 12 |
</body>
|
| 13 |
</html>
|
vite.config.ts
CHANGED
|
@@ -4,6 +4,7 @@ import react from '@vitejs/plugin-react'
|
|
| 4 |
// https://vite.dev/config/
|
| 5 |
export default defineConfig({
|
| 6 |
plugins: [react()],
|
|
|
|
| 7 |
optimizeDeps: {
|
| 8 |
// Don't pre-bundle transformers.js — it dynamically loads ONNX Runtime WASM/WebGPU
|
| 9 |
exclude: ["@huggingface/transformers"],
|
|
|
|
| 4 |
// https://vite.dev/config/
|
| 5 |
export default defineConfig({
|
| 6 |
plugins: [react()],
|
| 7 |
+
base: "./", // relative paths for HF Space static hosting
|
| 8 |
optimizeDeps: {
|
| 9 |
// Don't pre-bundle transformers.js — it dynamically loads ONNX Runtime WASM/WebGPU
|
| 10 |
exclude: ["@huggingface/transformers"],
|