kemuriririn commited on
Commit
fdde86a
Β·
1 Parent(s): 291dfa5
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -1306,6 +1306,7 @@ def has_long_silence(audio_path, min_silence_len_ms=10000, silence_thresh_db=-40
1306
  return len(silent_ranges) > 0
1307
  except Exception as e:
1308
  print(f"ζ— ζ³•εˆ†ζžιŸ³ι’‘ζ–‡δ»Ά {audio_path}: {e}")
 
1309
  return False
1310
 
1311
  if __name__ == "__main__":
 
1306
  return len(silent_ranges) > 0
1307
  except Exception as e:
1308
  print(f"ζ— ζ³•εˆ†ζžιŸ³ι’‘ζ–‡δ»Ά {audio_path}: {e}")
1309
+ app.logger.error(f"ζ— ζ³•εˆ†ζžιŸ³ι’‘ζ–‡δ»Ά {audio_path}: {e}")
1310
  return False
1311
 
1312
  if __name__ == "__main__":