Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,14 +32,14 @@ def generate_music_tensors(descriptions, duration: int, device):
|
|
32 |
with st.spinner("Generating Music..."):
|
33 |
# Generate music using the model
|
34 |
output = model.generate(
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
device=device
|
39 |
)
|
40 |
|
41 |
-
|
42 |
-
|
|
|
43 |
|
44 |
st.success("Music Generation Complete!")
|
45 |
return output
|
|
|
32 |
with st.spinner("Generating Music..."):
|
33 |
# Generate music using the model
|
34 |
output = model.generate(
|
35 |
+
descriptions=descriptions,
|
36 |
+
progress=True,
|
37 |
+
return_tokens=True,
|
|
|
38 |
)
|
39 |
|
40 |
+
# Save the generated music audio
|
41 |
+
# Remove the device argument
|
42 |
+
save_audio(output)
|
43 |
|
44 |
st.success("Music Generation Complete!")
|
45 |
return output
|