KingNish commited on
Commit
589972a
·
verified ·
1 Parent(s): 7bb6fbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -265,7 +265,7 @@ def generate_music(
265
  mix_stem = (vocal_audio[1] + instrumental_audio[1]) / 1 # mixing by summing and dividing
266
  mixed_audio = (vocal_audio[0], mix_stem) # same sample rate
267
 
268
- return (sr, (mix_stem * 32767).astype(np.int16)), None, None
269
 
270
  def infer(genre_txt_content, lyrics_txt_content, num_segments=2, max_new_tokens=15):
271
  # Execute the command
 
265
  mix_stem = (vocal_audio[1] + instrumental_audio[1]) / 1 # mixing by summing and dividing
266
  mixed_audio = (vocal_audio[0], mix_stem) # same sample rate
267
 
268
+ return (vocal_audio[0], (mix_stem * 32767).astype(np.int16)), None, None
269
 
270
  def infer(genre_txt_content, lyrics_txt_content, num_segments=2, max_new_tokens=15):
271
  # Execute the command