fffiloni commited on
Commit
1b5791c
·
verified ·
1 Parent(s): faf8c97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def infer_img2img(prompt, audio_path, progress=gr.Progress(track_tqdm=True)):
47
  audio, sampling_rate = load_wav(audio_path)
48
  audio, spec = get_mel_spectrogram_from_audio(audio)
49
  norm_spec = normalize_spectrogram(spec)
50
- norm_spec = norm_spec[:,:, width_start:width_start+width]
51
  norm_spec = pad_spec(norm_spec, 1024)
52
  norm_spec = normalize(norm_spec) # normalize to [-1, 1], because pipeline do not normalize for torch.Tensor input
53
 
 
47
  audio, sampling_rate = load_wav(audio_path)
48
  audio, spec = get_mel_spectrogram_from_audio(audio)
49
  norm_spec = normalize_spectrogram(spec)
50
+ # norm_spec = norm_spec[:,:, width_start:width_start+width]
51
  norm_spec = pad_spec(norm_spec, 1024)
52
  norm_spec = normalize(norm_spec) # normalize to [-1, 1], because pipeline do not normalize for torch.Tensor input
53