Spaces:
Running
on
Zero
Running
on
Zero
reduce GPU duration to default
Browse files
app.py
CHANGED
@@ -131,7 +131,7 @@ def _transcribe_whisper_cpu(model_id, language, audio_path, enable_diar):
|
|
131 |
return transcript, ""
|
132 |
|
133 |
|
134 |
-
@spaces.GPU
|
135 |
def _transcribe_whisper_gpu(model_id, language, audio_path, enable_diar):
|
136 |
pipe = get_whisper_pipe(model_id, 0)
|
137 |
# Diarization-only branch
|
@@ -213,7 +213,7 @@ def _transcribe_sense_cpu(model_id: str,
|
|
213 |
return text, ""
|
214 |
|
215 |
|
216 |
-
@spaces.GPU
|
217 |
def _transcribe_sense_gpu(model_id: str,
|
218 |
language: str,
|
219 |
audio_path: str,
|
|
|
131 |
return transcript, ""
|
132 |
|
133 |
|
134 |
+
@spaces.GPU
|
135 |
def _transcribe_whisper_gpu(model_id, language, audio_path, enable_diar):
|
136 |
pipe = get_whisper_pipe(model_id, 0)
|
137 |
# Diarization-only branch
|
|
|
213 |
return text, ""
|
214 |
|
215 |
|
216 |
+
@spaces.GPU
|
217 |
def _transcribe_sense_gpu(model_id: str,
|
218 |
language: str,
|
219 |
audio_path: str,
|