Spaces:
Running
on
Zero
Running
on
Zero
Update soni_translate/speech_segmentation.py
Browse files
soni_translate/speech_segmentation.py
CHANGED
@@ -27,7 +27,7 @@ def random_sleep():
|
|
27 |
time.sleep(sleep_time)
|
28 |
|
29 |
|
30 |
-
@spaces.GPU
|
31 |
def load_and_transcribe_audio(asr_model, audio, compute_type, language, asr_options, batch_size, segment_duration_limit):
|
32 |
# Load model
|
33 |
model = whisperx.load_model(
|
|
|
27 |
time.sleep(sleep_time)
|
28 |
|
29 |
|
30 |
+
@spaces.GPU
|
31 |
def load_and_transcribe_audio(asr_model, audio, compute_type, language, asr_options, batch_size, segment_duration_limit):
|
32 |
# Load model
|
33 |
model = whisperx.load_model(
|