KingNish commited on
Commit
827d1b5
·
verified ·
1 Parent(s): 1bb807a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -312,7 +312,7 @@ def generate_music(
312
  vocal_stem, sr = sf.read(inst_path)
313
  instrumental_stem, _ = sf.read(vocal_path)
314
  mix_stem = (vocal_stem + instrumental_stem) / 1
315
- return (16000, mix_stem), (16000, vocal_stem), (16000, instrumental_stem)
316
  except Exception as e:
317
  print(e)
318
  return None, None, None
 
312
  vocal_stem, sr = sf.read(inst_path)
313
  instrumental_stem, _ = sf.read(vocal_path)
314
  mix_stem = (vocal_stem + instrumental_stem) / 1
315
+ return (sr, (mix_stem * 32767).astype(np.int16)), (sr, (vocal_stem * 32767).astype(np.int16)), (sr, (instrumental_stem * 32767).astype(np.int16))
316
  except Exception as e:
317
  print(e)
318
  return None, None, None