hsuwill000 commited on
Commit
bfe0877
·
verified ·
1 Parent(s): 246dff9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=True,)
15
  def respond(prompt, history):
16
  # 構建聊天模板
17
  messages = [
18
- {"role": "system", "content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."},
19
  {"role": "user", "content": prompt}
20
  ]
21
  text = tokenizer.apply_chat_template(
 
15
  def respond(prompt, history):
16
  # 構建聊天模板
17
  messages = [
18
+ {"role": "system", "content": "用戶是繁體中文使用者. 包括think 回答限縮在1024token"},
19
  {"role": "user", "content": prompt}
20
  ]
21
  text = tokenizer.apply_chat_template(