bhav1k commited on
Commit
a4d6911
·
verified ·
1 Parent(s): 60c92fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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 ExceededMaximumDuration as e:
345
- return [], ("[ERROR]: Maximum remote video length is " + str(e.maxDuration) + "s, file was " + str(e.videoDuration) + "s"), "[ERROR]"
 
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(),