From 0b0dbe717a5218f46b535a05a22f956afdbed577 Mon Sep 17 00:00:00 2001 From: ZwwWayne Date: Fri, 19 Jan 2024 11:20:12 +0800 Subject: [PATCH] [lint]: fix lint issue --- chat/web_demo.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chat/web_demo.py b/chat/web_demo.py index 1d2666a..55af03f 100644 --- a/chat/web_demo.py +++ b/chat/web_demo.py @@ -183,8 +183,10 @@ cur_query_prompt = "[UNUSED_TOKEN_146]user\n{user}[UNUSED_TOKEN_145]\n[UNUSED_TO def combine_history(prompt): messages = st.session_state.messages - meta_instruction = ("You are InternLM (书生·浦语), a helpful, honest, and harmless AI assistant developed by Shanghai " - "AI Laboratory (上海人工智能实验室).") + meta_instruction = ( + "You are InternLM (书生·浦语), a helpful, honest, and harmless AI assistant developed by Shanghai " + "AI Laboratory (上海人工智能实验室)." + ) total_prompt = f"[UNUSED_TOKEN_146]system\n{meta_instruction}[UNUSED_TOKEN_145]\n" for message in messages: cur_content = message["content"]