khang119966 commited on
Commit
4b6d32a
·
verified ·
1 Parent(s): b5d5932

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -243,6 +243,7 @@ from transformers import pipeline
243
 
244
  pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3-turbo", torch_dtype=torch.float16, device="cuda:0")
245
 
 
246
  def transcribe_speech(filepath):
247
  output = pipe(
248
  filepath,
 
243
 
244
  pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3-turbo", torch_dtype=torch.float16, device="cuda:0")
245
 
246
+ @spaces.GPU
247
  def transcribe_speech(filepath):
248
  output = pipe(
249
  filepath,