From da5a176205751cf53b75b71c829369ff61ba9d0d Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Wed, 25 Dec 2024 23:22:51 +0800 Subject: [PATCH] fix: inversed WebGPU --- packages/whisper-webgpu/src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/whisper-webgpu/src/App.vue b/packages/whisper-webgpu/src/App.vue index 59e1b9457..4e2ee9143 100644 --- a/packages/whisper-webgpu/src/App.vue +++ b/packages/whisper-webgpu/src/App.vue @@ -8,7 +8,7 @@ import Progress from './components/Progress.vue' import WhisperLanguageSelect from './components/WhisperLanguageSelect.vue' import Worker from './libs/worker?worker&url' -const IS_WEBGPU_AVAILABLE = (('gpu' in navigator) && !navigator.gpu) +const IS_WEBGPU_AVAILABLE = (('gpu' in navigator) && navigator.gpu) const WHISPER_SAMPLING_RATE = 16_000 const MAX_AUDIO_LENGTH = 30 // seconds