litagin commited on
Commit
b438a95
·
1 Parent(s): 6583126
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -34,6 +34,7 @@ logger.success("All models loaded successfully")
34
  @torch.inference_mode()
35
  def transcribe(audio_path: Path) -> list[str]:
36
  duration = librosa.get_duration(path=audio_path)
 
37
  if duration > 30:
38
  raise gr.Error("Audio duration exceeds 30 seconds")
39
 
 
34
  @torch.inference_mode()
35
  def transcribe(audio_path: Path) -> list[str]:
36
  duration = librosa.get_duration(path=audio_path)
37
+ logger.info(f"audio: {Path(audio_path).name}, duration: {duration:.2f} seconds")
38
  if duration > 30:
39
  raise gr.Error("Audio duration exceeds 30 seconds")
40