cocktailpeanut commited on
Commit
39452bd
·
1 Parent(s): 2a1f9ea
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ cfm, tokenizer, muq, vae = prepare_model(device)
30
  #cfm = torch.compile(cfm)
31
 
32
  #@spaces.GPU
33
- def infer_music(lrc, ref_audio_path, steps, file_type, max_frames=2048, device='cuda'):
34
 
35
  sway_sampling_coef = -1 if steps < 32 else None
36
  lrc_prompt, start_time = get_lrc_token(lrc, tokenizer, device)
@@ -327,7 +327,7 @@ with gr.Blocks(css=css) as demo:
327
 
328
  lyrics_btn.click(
329
  fn=infer_music,
330
- inputs=[lrc, audio_prompt, steps, file_type, device],
331
  outputs=audio_output
332
  )
333
 
 
30
  #cfm = torch.compile(cfm)
31
 
32
  #@spaces.GPU
33
+ def infer_music(lrc, ref_audio_path, steps, file_type, max_frames=2048):
34
 
35
  sway_sampling_coef = -1 if steps < 32 else None
36
  lrc_prompt, start_time = get_lrc_token(lrc, tokenizer, device)
 
327
 
328
  lyrics_btn.click(
329
  fn=infer_music,
330
+ inputs=[lrc, audio_prompt, steps, file_type],
331
  outputs=audio_output
332
  )
333