cyqm commited on
Commit
816f303
·
1 Parent(s): 96fe271

Update handler: optimized prompt

Browse files
Files changed (1) hide show
  1. handler.py +2 -3
handler.py CHANGED
@@ -34,9 +34,8 @@ class EndpointHandler:
34
  raise ValueError("Input prompt is missing.")
35
 
36
  messages = [
37
- {"role": "system", "content": "Please reason step by step, and put your final answer within \\boxed{}. "
38
- "Then, give your confidence level regarding your answer."},
39
- {"role": "user", "content": question}
40
  ]
41
 
42
  text = self.tokenizer.apply_chat_template(
 
34
  raise ValueError("Input prompt is missing.")
35
 
36
  messages = [
37
+ {"role": "system", "content": "Please reason step by step, and put your final answer within \\boxed{}."},
38
+ {"role": "user", "content": question + " Then, give your confidence level regarding your answer."}
 
39
  ]
40
 
41
  text = self.tokenizer.apply_chat_template(