fix: inversed WebGPU

This commit is contained in:
Neko Ayaka 2024-12-25 23:22:51 +08:00
parent d1b560f1dc
commit da5a176205
No known key found for this signature in database

View file

@ -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