Skip to content

Commit e17d77c

Browse files
authored
Migrate examples from main repo (huggingface#28)
* Formatting * More formatting * Bump versions * Bump transformers.js version in bun example * Add adaptive retrieval demo * Formatting * Add code completion demo * Remove unused state * Update demo title * Add florence-2 webgpu demo * Add depth anything web demo * Add node audio processing demo * Add remove background demo * Add depth estimation video demo * Add vanilla JS demo * Add whisper word timestamps demo * Add musicgen web demo * Add cross encoder demo * Add speecht5 web demo * Add video background removal demo * Bump SAM demo to use latest working version * Add zero-shot classification demo * Add semantic image search demo * Add semantic audio search demo * Add webgpu embedding benchmark * Add WebGPU CLIP demo * Add nomic embed webgpu demo
1 parent 91d253c commit e17d77c

File tree

209 files changed

+85547
-443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+85547
-443
lines changed

Diff for: adaptive-retrieval/.eslintrc.cjs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
"eslint:recommended",
6+
"plugin:react/recommended",
7+
"plugin:react/jsx-runtime",
8+
"plugin:react-hooks/recommended",
9+
],
10+
ignorePatterns: ["dist", ".eslintrc.cjs"],
11+
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
12+
settings: { react: { version: "18.2" } },
13+
plugins: ["react-refresh"],
14+
rules: {
15+
"react-refresh/only-export-components": [
16+
"warn",
17+
{ allowConstantExport: true },
18+
],
19+
},
20+
};

Diff for: adaptive-retrieval/.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

Diff for: adaptive-retrieval/index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
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>Adaptive Retrieval w/ Transformers.js</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.jsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)