Update app.py
Browse files
app.py
CHANGED
@@ -225,7 +225,10 @@ def load_spec_for_manual_masking(audio_path):
|
|
225 |
norm_spec = normalize(norm_spec) # normalize to [-1, 1], because pipeline do not normalize for torch.Tensor input
|
226 |
|
227 |
raw_image = image_add_color(torch_to_pil(norm_spec))
|
228 |
-
|
|
|
|
|
|
|
229 |
|
230 |
|
231 |
css="""
|
|
|
225 |
norm_spec = normalize(norm_spec) # normalize to [-1, 1], because pipeline do not normalize for torch.Tensor input
|
226 |
|
227 |
raw_image = image_add_color(torch_to_pil(norm_spec))
|
228 |
+
|
229 |
+
input_spec_image_path = "input_spectrogram.png"
|
230 |
+
raw_image.save(input_spec_image_path)
|
231 |
+
return input_spec_image_path
|
232 |
|
233 |
|
234 |
css="""
|