lord-reso commited on
Commit
c51fa1f
·
verified ·
1 Parent(s): 8cbcb5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -44,7 +44,10 @@ async def synthesize(request: Request):
44
  mel_output_base64 = plot_data([mel_output_data, mel_output_postnet_data, alignments_data])
45
 
46
  # Audio Synthesis begins
47
- input_mel = np.create('mel1'+'.npy', mel_output_data)
 
 
 
48
  hifigan_checkpoint="generator_v1"
49
 
50
  # Generate audio using Hifigan
 
44
  mel_output_base64 = plot_data([mel_output_data, mel_output_postnet_data, alignments_data])
45
 
46
  # Audio Synthesis begins
47
+ buffer = BytesIO()
48
+ np.save(buffer, mel_output_data)
49
+ input_mel = buffer.getvalue()
50
+
51
  hifigan_checkpoint="generator_v1"
52
 
53
  # Generate audio using Hifigan