fffiloni commited on
Commit
68759ee
·
verified ·
1 Parent(s): 061446b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- return raw_image
 
 
 
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="""