Spaces:
Build error
Build error
Update audio_processing.py
Browse files- audio_processing.py +1 -5
audio_processing.py
CHANGED
|
@@ -175,8 +175,4 @@ def process_audio(audio_file, translate=False, model_size="small", use_diarizati
|
|
| 175 |
return language_segments, merged_segments
|
| 176 |
except Exception as e:
|
| 177 |
logger.error(f"An error occurred during audio processing: {str(e)}")
|
| 178 |
-
raise
|
| 179 |
-
|
| 180 |
-
# You can keep the original process_audio function for backwards compatibility
|
| 181 |
-
# or replace it with the optimized version
|
| 182 |
-
process_audio = process_audio_optimized
|
|
|
|
| 175 |
return language_segments, merged_segments
|
| 176 |
except Exception as e:
|
| 177 |
logger.error(f"An error occurred during audio processing: {str(e)}")
|
| 178 |
+
raise
|
|
|
|
|
|
|
|
|
|
|
|