cocktailpeanut commited on
Commit
50c487f
Β·
1 Parent(s): f017614
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def infer_music(lrc, ref_audio_path, steps, file_type, cfg_strength, odeint_meth
49
  # style_prompt = get_style_prompt(muq, ref_audio_path, prompt)
50
 
51
  print(f"infer_music: lrc={lrc}, ref_audio_path={ref_audio_path}, steps={steps}, file_type={file_type}, cfg_strength={cfg_strength}, odeint_method={odeint_method}, duration={duration}, prompt={prompt}")
52
- if prompt is not None:
53
  print("text style prompt")
54
  style_prompt = get_text_style_prompt(muq, prompt)
55
  else:
 
49
  # style_prompt = get_style_prompt(muq, ref_audio_path, prompt)
50
 
51
  print(f"infer_music: lrc={lrc}, ref_audio_path={ref_audio_path}, steps={steps}, file_type={file_type}, cfg_strength={cfg_strength}, odeint_method={odeint_method}, duration={duration}, prompt={prompt}")
52
+ if prompt:
53
  print("text style prompt")
54
  style_prompt = get_text_style_prompt(muq, prompt)
55
  else: