testingfaces commited on
Commit
1e542e4
Β·
verified Β·
1 Parent(s): bbf5b24

Update denoiser.py

Browse files
Files changed (1) hide show
  1. denoiser.py +10 -1
denoiser.py CHANGED
@@ -79,4 +79,13 @@ class Denoiser:
79
  clean_word = re.sub(r'[^a-z\s]', '', w.lower()).strip()
80
  if clean_word not in FILLER_WORDS:
81
  result.append(w)
82
- return " ".join(result)
 
 
 
 
 
 
 
 
 
 
79
  clean_word = re.sub(r'[^a-z\s]', '', w.lower()).strip()
80
  if clean_word not in FILLER_WORDS:
81
  result.append(w)
82
+ return " ".join(result)
83
+ # ══════════════════════════════════════════════════════════════════
84
+ # DUMMY METHODS (To prevent app.py runtime crashes)
85
+ # Cleanvoice already cut these in the cloud, so we just return the audio as-is.
86
+ # ══════════════════════════════════════════════════════════════════
87
+ def _remove_fillers(self, audio, sr, segments):
88
+ return audio, 0
89
+
90
+ def _remove_stutters(self, audio, sr, segments):
91
+ return audio, 0