Update system prompt of assistant mode to make sure AudioEvals metric is replicable
Browse files- 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 = "
|
721 |
-
vc_prompt_suffix = "
|
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]}
|