Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 (
|
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
|