Luigi commited on
Commit
f0a0056
·
1 Parent(s): c3abe72

acquire gpu for streaming version of fwhiper transcribe func

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.