chore(ci): configure for Whisper WebGPU

This commit is contained in:
Neko Ayaka
2024-12-25 19:18:19 +08:00
parent 4faf4d77b0
commit 756d140713
3 changed files with 44 additions and 2 deletions
@@ -20,6 +20,21 @@ jobs:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
- run: |-
git clone https://$HF_USERNAME:$HF_TOKEN@huggingface.co/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:
@@ -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 "neko@ayaka.moe"
git config --local user.name "Neko Ayaka"
git commit -m "release: build ${{ github.sha }}"
git push -f
+2 -2
View File
@@ -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>
+14
View File
@@ -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">