chore(ci): configure for Whisper WebGPU
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user