bokesyo commited on
Commit
7a26a08
·
verified ·
1 Parent(s): 8329cd6

Update system prompt of assistant mode to make sure AudioEvals metric is replicable

Browse files
Files changed (1) hide show
  1. modeling_minicpmo.py +2 -2
modeling_minicpmo.py CHANGED
@@ -717,8 +717,8 @@ class MiniCPMO(MiniCPMOPreTrainedModel):
717
  vc_prompt_prefix = "模仿输入音频中的声音特征。"
718
  vc_prompt_suffix = "作为助手,你将使用这种声音风格说话。"
719
  else:
720
- vc_prompt_prefix = "Clone the voice in the provided audio prompt."
721
- vc_prompt_suffix = "As an assistant, you will speak using this voice style."
722
 
723
  if ref_audio is not None:
724
  sys_msgs = {"role": "user", "content": [vc_prompt_prefix, ref_audio, vc_prompt_suffix]}
 
717
  vc_prompt_prefix = "模仿输入音频中的声音特征。"
718
  vc_prompt_suffix = "作为助手,你将使用这种声音风格说话。"
719
  else:
720
+ vc_prompt_prefix = "Use the voice in the audio prompt to synthesize new content."
721
+ vc_prompt_suffix = "You are a helpful assistant with the above voice style."
722
 
723
  if ref_audio is not None:
724
  sys_msgs = {"role": "user", "content": [vc_prompt_prefix, ref_audio, vc_prompt_suffix]}