Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -341,8 +341,9 @@ class WhisperTranscriber:
|
|
341 |
# Ignore error - it's just a cleanup
|
342 |
print("Error deleting source file " + source.source_path + ": " + str(e))
|
343 |
|
344 |
-
except
|
345 |
-
|
|
|
346 |
|
347 |
def transcribe_file(self, model: AbstractWhisperContainer, audio_path: str, language: str, task: str = None,
|
348 |
vadOptions: VadOptions = VadOptions(),
|
|
|
341 |
# Ignore error - it's just a cleanup
|
342 |
print("Error deleting source file " + source.source_path + ": " + str(e))
|
343 |
|
344 |
+
except Exception as e:
|
345 |
+
print(f"Error: {e}")
|
346 |
+
return [], f"[ERROR]: {str(e)}", "[ERROR]"
|
347 |
|
348 |
def transcribe_file(self, model: AbstractWhisperContainer, audio_path: str, language: str, task: str = None,
|
349 |
vadOptions: VadOptions = VadOptions(),
|