Spaces:
Runtime error
Runtime error
Commit
Β·
63622bb
1
Parent(s):
ee39130
update
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def infer_music(lrc, ref_audio_path, steps, file_type, cfg_strength, odeint_meth
|
|
42 |
|
43 |
max_frames = math.floor(duration * 21.56)
|
44 |
sway_sampling_coef = -1 if steps < 32 else None
|
45 |
-
lrc_prompt, start_time = get_lrc_token(lrc, tokenizer, device)
|
46 |
style_prompt = get_style_prompt(muq, ref_audio_path, prompt)
|
47 |
negative_style_prompt = get_negative_style_prompt(device)
|
48 |
latent_prompt = get_reference_latent(device, max_frames)
|
|
|
42 |
|
43 |
max_frames = math.floor(duration * 21.56)
|
44 |
sway_sampling_coef = -1 if steps < 32 else None
|
45 |
+
lrc_prompt, start_time = get_lrc_token(max_frames, lrc, tokenizer, device)
|
46 |
style_prompt = get_style_prompt(muq, ref_audio_path, prompt)
|
47 |
negative_style_prompt = get_negative_style_prompt(device)
|
48 |
latent_prompt = get_reference_latent(device, max_frames)
|