Spaces:
Build error
Build error
Update audio_processing.py
Browse files- audio_processing.py +2 -2
audio_processing.py
CHANGED
|
@@ -105,8 +105,8 @@ def split_audio(audio, max_duration=30):
|
|
| 105 |
return splits
|
| 106 |
|
| 107 |
# Main processing function with optimizations
|
| 108 |
-
@spaces.GPU(duration=
|
| 109 |
-
def
|
| 110 |
global whisper_model, diarization_pipeline
|
| 111 |
|
| 112 |
if whisper_model is None:
|
|
|
|
| 105 |
return splits
|
| 106 |
|
| 107 |
# Main processing function with optimizations
|
| 108 |
+
@spaces.GPU(duration=60)
|
| 109 |
+
def process_audio(audio_file, translate=False, model_size="small", use_diarization=True):
|
| 110 |
global whisper_model, diarization_pipeline
|
| 111 |
|
| 112 |
if whisper_model is None:
|