Skip to content

Commit

Permalink
chore(ci): configure for Whisper WebGPU
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomeowww committed Dec 25, 2024
1 parent 4faf4d7 commit 756d140
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy-huggingface-spaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ jobs:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
- run: |-
git clone https://$HF_USERNAME:[email protected]/spaces/moeru-ai/whisper-webgpu-vue --depth 1 packages/whisper-webgpu/dist
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- run: pnpm install
- run: pnpm build

- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
Expand All @@ -41,3 +56,16 @@ jobs:
git config --local user.name "Neko Ayaka"
git commit -m "release: build ${{ github.sha }}"
git push -f
- name: Push to hub
working-directory: ./packages/whisper-webgpu/dist
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
run: |-
mv ../README.md .
git add .
git config --local user.email "[email protected]"
git config --local user.name "Neko Ayaka"
git commit -m "release: build ${{ github.sha }}"
git push -f
4 changes: 2 additions & 2 deletions packages/moonshine-web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ colorFrom: blue
colorTo: pink
sdk: static
pinned: false
license: apache-2.0
license: MIT
models:
- onnx-community/moonshine-base-ONNX
short_description: Yet another Real-time in-browser STT, re-implemented in Vue
thumbnail: https://raw.githubusercontent.com/moeru-ai/airi/refs/heads/main/packages/whisper-webgpu/public/banner.png
thumbnail: https://raw.githubusercontent.com/moeru-ai/airi/refs/heads/main/packages/moonshine-web/public/banner.png
---

<h1 align="center">Moonshine Web (Vue)</h1>
Expand Down
14 changes: 14 additions & 0 deletions packages/whisper-webgpu/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
---
title: Real-time Whisper WebGPU (Vue)
emoji: 🎤
colorFrom: gray
colorTo: green
sdk: static
pinned: false
license: MIT
models:
- onnx-community/whisper-base
short_description: Yet another Real-time Whisper with WebGPU, written in Vue
thumbnail: https://raw.githubusercontent.com/moeru-ai/airi/refs/heads/main/packages/whisper-webgpu/public/banner.png
---

<h1 align="center">Whisper Realtime Demo (WebGPU)</h1>

<p align="center">
Expand Down

0 comments on commit 756d140

Please sign in to comment.