Spaces:
Runtime error
Runtime error
Commit
โข
9c0be59
1
Parent(s):
8959252
๐ Use adapter-node
Browse files- Dockerfile +6 -2
- README.md +1 -1
- packages/widgets/package.json +1 -1
- packages/widgets/pnpm-lock.yaml +111 -10
- packages/widgets/svelte.config.js +1 -1
Dockerfile
CHANGED
@@ -9,6 +9,10 @@ RUN corepack enable
|
|
9 |
|
10 |
COPY --link --chown=1000 . .
|
11 |
|
12 |
-
RUN pnpm install
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
COPY --link --chown=1000 . .
|
11 |
|
12 |
+
RUN pnpm install
|
13 |
|
14 |
+
RUN pnpm --filter widgets build
|
15 |
+
|
16 |
+
WORKDIR /app/packages/widgets
|
17 |
+
|
18 |
+
CMD ["node", "build/index.js"]
|
README.md
CHANGED
@@ -5,7 +5,7 @@ colorFrom: pink
|
|
5 |
colorTo: red
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
-
app_port:
|
9 |
---
|
10 |
|
11 |
Demo app for [Inference Widgets](https://github.com/huggingface/huggingface.js/tree/main/packages/widgets).
|
|
|
5 |
colorTo: red
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
+
app_port: 3000
|
9 |
---
|
10 |
|
11 |
Demo app for [Inference Widgets](https://github.com/huggingface/huggingface.js/tree/main/packages/widgets).
|
packages/widgets/package.json
CHANGED
@@ -38,7 +38,7 @@
|
|
38 |
"svelte": "^3.59.2"
|
39 |
},
|
40 |
"devDependencies": {
|
41 |
-
"@sveltejs/adapter-
|
42 |
"@sveltejs/kit": "^1.27.4",
|
43 |
"@sveltejs/package": "^2.0.0",
|
44 |
"@tailwindcss/forms": "^0.5.7",
|
|
|
38 |
"svelte": "^3.59.2"
|
39 |
},
|
40 |
"devDependencies": {
|
41 |
+
"@sveltejs/adapter-node": "^1.3.1",
|
42 |
"@sveltejs/kit": "^1.27.4",
|
43 |
"@sveltejs/package": "^2.0.0",
|
44 |
"@tailwindcss/forms": "^0.5.7",
|
packages/widgets/pnpm-lock.yaml
CHANGED
@@ -10,9 +10,9 @@ dependencies:
|
|
10 |
version: link:../tasks
|
11 |
|
12 |
devDependencies:
|
13 |
-
'@sveltejs/adapter-
|
14 |
-
specifier: ^
|
15 |
-
version:
|
16 |
'@sveltejs/kit':
|
17 |
specifier: ^1.27.4
|
18 |
version: 1.27.4([email protected])([email protected])
|
@@ -360,13 +360,80 @@ packages:
|
|
360 |
resolution: {integrity: sha512-C16M+IYz0rgRhWZdCmK+h58JMv8vijAA61gmz2rspCSwKwzBebpdcsiUmwrtJRdphuY30i6BSLEOP8ppbNLyLg==}
|
361 |
dev: true
|
362 |
|
363 |
-
/@
|
364 |
-
resolution: {integrity: sha512-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
peerDependencies:
|
366 |
'@sveltejs/kit': ^1.0.0
|
367 |
dependencies:
|
|
|
|
|
|
|
368 |
'@sveltejs/kit': 1.27.4([email protected])([email protected])
|
369 |
-
|
370 |
dev: true
|
371 |
|
372 |
/@sveltejs/[email protected]([email protected])([email protected]):
|
@@ -462,10 +529,18 @@ packages:
|
|
462 |
resolution: {integrity: sha512-7z/eR6O859gyWIAjuvBWFzNURmf2oPBmJlfVWkwehU5nzIyjwBsTh7WMmEEV4JFnHuQ3ex4oyTvfKzcyJVDBNA==}
|
463 |
dev: true
|
464 |
|
|
|
|
|
|
|
|
|
465 |
/@types/[email protected]:
|
466 |
resolution: {integrity: sha512-Yg4LkgFYvn1faISbDNWmcAC1XoDT8IoMUFspp5mnagKk+UvD2N0IWt5A7GRdMubsNWqgCLmrkf8rXkzNqb4szA==}
|
467 |
dev: true
|
468 |
|
|
|
|
|
|
|
|
|
469 | |
470 |
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
|
471 |
peerDependencies:
|
@@ -581,6 +656,11 @@ packages:
|
|
581 |
resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}
|
582 |
dev: true
|
583 |
|
|
|
|
|
|
|
|
|
|
|
584 | |
585 |
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
|
586 |
engines: {node: '>=6'}
|
@@ -634,6 +714,10 @@ packages:
|
|
634 |
engines: {node: '>= 6'}
|
635 |
dev: true
|
636 |
|
|
|
|
|
|
|
|
|
637 | |
638 |
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
|
639 |
dev: true
|
@@ -863,6 +947,10 @@ packages:
|
|
863 |
engines: {node: '>=4.0'}
|
864 |
dev: true
|
865 |
|
|
|
|
|
|
|
|
|
866 | |
867 |
resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
|
868 |
engines: {node: '>=0.10.0'}
|
@@ -1054,10 +1142,6 @@ packages:
|
|
1054 |
resolve-from: 4.0.0
|
1055 |
dev: true
|
1056 |
|
1057 | |
1058 |
-
resolution: {integrity: sha512-f8KcQ1D80V7RnqVm+/lirO9zkOxjGxhaTC1IPrBGd3MEfNgmNG67tSUO9gTi2F3Blr2Az6g1vocaxzkVnWl9MA==}
|
1059 |
-
dev: true
|
1060 |
-
|
1061 | |
1062 |
resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
|
1063 |
engines: {node: '>=0.8.19'}
|
@@ -1081,6 +1165,13 @@ packages:
|
|
1081 |
binary-extensions: 2.2.0
|
1082 |
dev: true
|
1083 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1084 | |
1085 |
resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==}
|
1086 |
dependencies:
|
@@ -1099,6 +1190,10 @@ packages:
|
|
1099 |
is-extglob: 2.1.1
|
1100 |
dev: true
|
1101 |
|
|
|
|
|
|
|
|
|
1102 | |
1103 |
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
|
1104 |
engines: {node: '>=0.12.0'}
|
@@ -1109,6 +1204,12 @@ packages:
|
|
1109 |
engines: {node: '>=8'}
|
1110 |
dev: true
|
1111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1112 | |
1113 |
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
1114 |
dev: true
|
|
|
10 |
version: link:../tasks
|
11 |
|
12 |
devDependencies:
|
13 |
+
'@sveltejs/adapter-node':
|
14 |
+
specifier: ^1.3.1
|
15 |
+
version: 1.3.1(@sveltejs/[email protected])
|
16 |
'@sveltejs/kit':
|
17 |
specifier: ^1.27.4
|
18 |
version: 1.27.4([email protected])([email protected])
|
|
|
360 |
resolution: {integrity: sha512-C16M+IYz0rgRhWZdCmK+h58JMv8vijAA61gmz2rspCSwKwzBebpdcsiUmwrtJRdphuY30i6BSLEOP8ppbNLyLg==}
|
361 |
dev: true
|
362 |
|
363 |
+
/@rollup/plugin-commonjs@25.0.7(rollup@3.29.4):
|
364 |
+
resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==}
|
365 |
+
engines: {node: '>=14.0.0'}
|
366 |
+
peerDependencies:
|
367 |
+
rollup: ^2.68.0||^3.0.0||^4.0.0
|
368 |
+
peerDependenciesMeta:
|
369 |
+
rollup:
|
370 |
+
optional: true
|
371 |
+
dependencies:
|
372 |
+
'@rollup/pluginutils': 5.0.5([email protected])
|
373 |
+
commondir: 1.0.1
|
374 |
+
estree-walker: 2.0.2
|
375 |
+
glob: 8.1.0
|
376 |
+
is-reference: 1.2.1
|
377 |
+
magic-string: 0.30.5
|
378 |
+
rollup: 3.29.4
|
379 |
+
dev: true
|
380 |
+
|
381 |
+
/@rollup/[email protected]([email protected]):
|
382 |
+
resolution: {integrity: sha512-RgVfl5hWMkxN1h/uZj8FVESvPuBJ/uf6ly6GTj0GONnkfoBN5KC0MSz+PN2OLDgYXMhtG0mWpTrkiOjoxAIevw==}
|
383 |
+
engines: {node: '>=14.0.0'}
|
384 |
+
peerDependencies:
|
385 |
+
rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
|
386 |
+
peerDependenciesMeta:
|
387 |
+
rollup:
|
388 |
+
optional: true
|
389 |
+
dependencies:
|
390 |
+
'@rollup/pluginutils': 5.0.5([email protected])
|
391 |
+
rollup: 3.29.4
|
392 |
+
dev: true
|
393 |
+
|
394 |
+
/@rollup/[email protected]([email protected]):
|
395 |
+
resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==}
|
396 |
+
engines: {node: '>=14.0.0'}
|
397 |
+
peerDependencies:
|
398 |
+
rollup: ^2.78.0||^3.0.0||^4.0.0
|
399 |
+
peerDependenciesMeta:
|
400 |
+
rollup:
|
401 |
+
optional: true
|
402 |
+
dependencies:
|
403 |
+
'@rollup/pluginutils': 5.0.5([email protected])
|
404 |
+
'@types/resolve': 1.20.2
|
405 |
+
deepmerge: 4.3.1
|
406 |
+
is-builtin-module: 3.2.1
|
407 |
+
is-module: 1.0.0
|
408 |
+
resolve: 1.22.8
|
409 |
+
rollup: 3.29.4
|
410 |
+
dev: true
|
411 |
+
|
412 |
+
/@rollup/[email protected]([email protected]):
|
413 |
+
resolution: {integrity: sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==}
|
414 |
+
engines: {node: '>=14.0.0'}
|
415 |
+
peerDependencies:
|
416 |
+
rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
|
417 |
+
peerDependenciesMeta:
|
418 |
+
rollup:
|
419 |
+
optional: true
|
420 |
+
dependencies:
|
421 |
+
'@types/estree': 1.0.5
|
422 |
+
estree-walker: 2.0.2
|
423 |
+
picomatch: 2.3.1
|
424 |
+
rollup: 3.29.4
|
425 |
+
dev: true
|
426 |
+
|
427 |
+
/@sveltejs/[email protected](@sveltejs/[email protected]):
|
428 |
+
resolution: {integrity: sha512-A0VgRQDCDPzdLNoiAbcOxGw4zT1Mc+n1LwT1OmO350R7WxrEqdMUChPPOd1iMfIDWlP4ie6E2d/WQf5es2d4Zw==}
|
429 |
peerDependencies:
|
430 |
'@sveltejs/kit': ^1.0.0
|
431 |
dependencies:
|
432 |
+
'@rollup/plugin-commonjs': 25.0.7([email protected])
|
433 |
+
'@rollup/plugin-json': 6.0.1([email protected])
|
434 |
+
'@rollup/plugin-node-resolve': 15.2.3([email protected])
|
435 |
'@sveltejs/kit': 1.27.4([email protected])([email protected])
|
436 |
+
rollup: 3.29.4
|
437 |
dev: true
|
438 |
|
439 |
/@sveltejs/[email protected]([email protected])([email protected]):
|
|
|
529 |
resolution: {integrity: sha512-7z/eR6O859gyWIAjuvBWFzNURmf2oPBmJlfVWkwehU5nzIyjwBsTh7WMmEEV4JFnHuQ3ex4oyTvfKzcyJVDBNA==}
|
530 |
dev: true
|
531 |
|
532 |
+
/@types/[email protected]:
|
533 |
+
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
|
534 |
+
dev: true
|
535 |
+
|
536 |
/@types/[email protected]:
|
537 |
resolution: {integrity: sha512-Yg4LkgFYvn1faISbDNWmcAC1XoDT8IoMUFspp5mnagKk+UvD2N0IWt5A7GRdMubsNWqgCLmrkf8rXkzNqb4szA==}
|
538 |
dev: true
|
539 |
|
540 |
+
/@types/[email protected]:
|
541 |
+
resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==}
|
542 |
+
dev: true
|
543 |
+
|
544 | |
545 |
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
|
546 |
peerDependencies:
|
|
|
656 |
resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}
|
657 |
dev: true
|
658 |
|
659 | |
660 |
+
resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==}
|
661 |
+
engines: {node: '>=6'}
|
662 |
+
dev: true
|
663 |
+
|
664 | |
665 |
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
|
666 |
engines: {node: '>=6'}
|
|
|
714 |
engines: {node: '>= 6'}
|
715 |
dev: true
|
716 |
|
717 | |
718 |
+
resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==}
|
719 |
+
dev: true
|
720 |
+
|
721 | |
722 |
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
|
723 |
dev: true
|
|
|
947 |
engines: {node: '>=4.0'}
|
948 |
dev: true
|
949 |
|
950 | |
951 |
+
resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
|
952 |
+
dev: true
|
953 |
+
|
954 | |
955 |
resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
|
956 |
engines: {node: '>=0.10.0'}
|
|
|
1142 |
resolve-from: 4.0.0
|
1143 |
dev: true
|
1144 |
|
|
|
|
|
|
|
|
|
1145 | |
1146 |
resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
|
1147 |
engines: {node: '>=0.8.19'}
|
|
|
1165 |
binary-extensions: 2.2.0
|
1166 |
dev: true
|
1167 |
|
1168 | |
1169 |
+
resolution: {integrity: sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==}
|
1170 |
+
engines: {node: '>=6'}
|
1171 |
+
dependencies:
|
1172 |
+
builtin-modules: 3.3.0
|
1173 |
+
dev: true
|
1174 |
+
|
1175 | |
1176 |
resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==}
|
1177 |
dependencies:
|
|
|
1190 |
is-extglob: 2.1.1
|
1191 |
dev: true
|
1192 |
|
1193 | |
1194 |
+
resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==}
|
1195 |
+
dev: true
|
1196 |
+
|
1197 | |
1198 |
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
|
1199 |
engines: {node: '>=0.12.0'}
|
|
|
1204 |
engines: {node: '>=8'}
|
1205 |
dev: true
|
1206 |
|
1207 | |
1208 |
+
resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==}
|
1209 |
+
dependencies:
|
1210 |
+
'@types/estree': 1.0.5
|
1211 |
+
dev: true
|
1212 |
+
|
1213 | |
1214 |
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
1215 |
dev: true
|
packages/widgets/svelte.config.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import adapter from "@sveltejs/adapter-
|
2 |
import { vitePreprocess } from "@sveltejs/kit/vite";
|
3 |
|
4 |
/** @type {import('@sveltejs/kit').Config} */
|
|
|
1 |
+
import adapter from "@sveltejs/adapter-node";
|
2 |
import { vitePreprocess } from "@sveltejs/kit/vite";
|
3 |
|
4 |
/** @type {import('@sveltejs/kit').Config} */
|