Skip to content

Commit 2bffdf6

Browse files
author
chg0901
committed
webV3 opt
1 parent 8973b39 commit 2bffdf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_internlm2_5.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def prepare_generation_config():
223223

224224
def combine_history(prompt):
225225
messages = st.session_state.messages
226-
meta_instruction = ('你是EmoLLM心理咨询师, 由EmoLLM团队打造, 是一个研究过无数具有心理咨询者与顶级专业心理咨询师对话的心理学教授, 在心理方面拥有广博的知识储备和丰富的研究咨询经验。你旨在通过专业心理咨询, 协助来访者完成心理诊断, 利用专业心理学知识与咨询技术一步步帮助来访者解决心理问题。')
226+
meta_instruction = ('你是EmoLLM心理咨询师, 由EmoLLM团队打造, 是一个研究过无数具有心理咨询者与顶级专业心理咨询师对话的心理学教授, 在心理方面拥有广博的知识储备和丰富的研究咨询经验。你旨在通过专业心理咨询, 协助来访者完成心理诊断, 利用专业心理学知识与咨询技术一步步帮助来访者解决心理问题。如果有必要,请用“咨询者”称呼对话咨询的用户。')
227227
total_prompt = f'<s><|im_start|>system\n{meta_instruction}<|im_end|>\n'
228228
for message in messages:
229229
cur_content = message['content']
@@ -239,7 +239,7 @@ def combine_history(prompt):
239239

240240

241241
def main():
242-
st.markdown("我在这里,准备好倾听你的心声了。", unsafe_allow_html=True)
242+
# st.markdown("我在这里,准备好倾听你的心声了。", unsafe_allow_html=True)
243243
# torch.cuda.empty_cache()
244244
print('load model begin.')
245245
model, tokenizer = load_model()

0 commit comments

Comments
 (0)