Spaces:
Running
on
Zero
Running
on
Zero
acquire gpu for streaming version of fwhiper transcribe func
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ def _transcribe_fwhisper_cpu_stream(model_id, language, audio_path, enable_diar)
|
|
206 |
accumulated.append(txt)
|
207 |
yield "\n".join(accumulated), ""
|
208 |
|
209 |
-
|
210 |
def _transcribe_fwhisper_gpu_stream(model_id, language, audio_path, enable_diar):
|
211 |
"""
|
212 |
Generator-based streaming transcription with accumulation using Faster-Whisper on CUDA.
|
|
|
206 |
accumulated.append(txt)
|
207 |
yield "\n".join(accumulated), ""
|
208 |
|
209 |
+
@spaces.GPU
|
210 |
def _transcribe_fwhisper_gpu_stream(model_id, language, audio_path, enable_diar):
|
211 |
"""
|
212 |
Generator-based streaming transcription with accumulation using Faster-Whisper on CUDA.
|