Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
|