czyoung commited on
Commit
f781cbe
·
verified ·
1 Parent(s): 63effd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,8 +81,8 @@ def processFile(filePath):
81
  newW = enhance(dfModel,dfState,w,atten_lim_db=attenLimDB)#.detach().cpu()
82
  enhancedWaveformList.append(newW)
83
  waveformEnhanced = su.combineWaveforms(enhancedWaveformList)
84
- waveform_gain_adjusted = su.equalizeVolume()(waveformEnhanced,sample_rate,gainWindow,minimumGain,maximumGain)
85
- annotations = pipeline({"waveform": waveformEnhanced, "sample_rate": sample_rate})
86
  speakerList = su.annotationToSpeakerList(annotations)
87
  return (speakerList, annotations)
88
 
 
81
  newW = enhance(dfModel,dfState,w,atten_lim_db=attenLimDB)#.detach().cpu()
82
  enhancedWaveformList.append(newW)
83
  waveformEnhanced = su.combineWaveforms(enhancedWaveformList)
84
+ waveform_gain_adjusted = su.equalizeVolume()(waveformEnhanced,sampleRate,gainWindow,minimumGain,maximumGain)
85
+ annotations = pipeline({"waveform": waveformEnhanced, "sample_rate": sampleRate})
86
  speakerList = su.annotationToSpeakerList(annotations)
87
  return (speakerList, annotations)
88