Gpagejr12 commited on
Commit
5015127
·
verified ·
1 Parent(s): 7562b2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- descriptions=descriptions,
36
- progress=True,
37
- return_tokens=True,
38
- device=device
39
  )
40
 
41
- # Save the generated music audio
42
- save_audio(output, device)
 
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