Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 (
|
| 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
|