Spaces:
Running
on
Zero
Running
on
Zero
khang119966
commited on
Update app.py
Browse files
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,
|