Skip to content

Commit e709c07

Browse files
authored
Create Voxtral WebGPU demo (#64)
1 parent d3831d2 commit e709c07

File tree

17 files changed

+6067
-0
lines changed

17 files changed

+6067
-0
lines changed

voxtral-webgpu/.gitignore

Lines changed: 24 additions & 0 deletions
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?

voxtral-webgpu/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Voxtral WebGPU
3+
emoji: 🐱
4+
colorFrom: blue
5+
colorTo: indigo
6+
sdk: static
7+
pinned: false
8+
license: apache-2.0
9+
short_description: State-of-the-art audio transcription in your browser
10+
app_build_command: npm run build
11+
app_file: dist/index.html
12+
thumbnail: >-
13+
https://cdn-uploads.huggingface.co/production/uploads/61b253b7ac5ecaae3d1efe0c/qIjiBD_PLIq3_vvJfWxds.png
14+
header: mini
15+
models:
16+
- onnx-community/Voxtral-Mini-3B-2507-ONNX
17+
---
18+
19+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

voxtral-webgpu/eslint.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import reactHooks from "eslint-plugin-react-hooks";
4+
import reactRefresh from "eslint-plugin-react-refresh";
5+
import tseslint from "typescript-eslint";
6+
import { globalIgnores } from "eslint/config";
7+
8+
export default tseslint.config([
9+
globalIgnores(["dist"]),
10+
{
11+
files: ["**/*.{ts,tsx}"],
12+
extends: [
13+
js.configs.recommended,
14+
tseslint.configs.recommended,
15+
reactHooks.configs["recommended-latest"],
16+
reactRefresh.configs.vite,
17+
],
18+
languageOptions: {
19+
ecmaVersion: 2020,
20+
globals: globals.browser,
21+
},
22+
},
23+
]);

voxtral-webgpu/index.html

Lines changed: 13 additions & 0 deletions
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/png" href="/logo.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Voxtral WebGPU</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)