bstraehle commited on
Commit
a65f5bc
·
verified ·
1 Parent(s): 3ad86cf

Update util.py

Browse files
Files changed (1) hide show
  1. util.py +3 -2
util.py CHANGED
@@ -19,7 +19,8 @@ def get_final_answer(model, question, answer):
19
  If you are asked for a number, don't use comma to write your number neither use units such as $ or % unless specified otherwise.
20
  If you are asked for a string, don't use articles, neither abbreviations, and write the digits in plain text unless specified otherwise.
21
  If you are asked for a comma-separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
22
- If the final answer is a single word, start uppercase.
 
23
 
24
  **Question:** """ + question + """
25
 
@@ -29,7 +30,7 @@ def get_final_answer(model, question, answer):
29
  **Example 2:** What is the opposite of black? White
30
  **Example 3:** What is the biggest city in California? Los Angeles
31
  **Example 4:** What is the superlative of good? Best
32
- **Example 5:** How many states are in the USA? 50
33
 
34
  **Final answer:**
35
 
 
19
  If you are asked for a number, don't use comma to write your number neither use units such as $ or % unless specified otherwise.
20
  If you are asked for a string, don't use articles, neither abbreviations, and write the digits in plain text unless specified otherwise.
21
  If you are asked for a comma-separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
22
+ If the final answer is a single word, start with an uppercase character.
23
+ If the final answer is a comma-separated list, use a space character after each comma.
24
 
25
  **Question:** """ + question + """
26
 
 
30
  **Example 2:** What is the opposite of black? White
31
  **Example 3:** What is the biggest city in California? Los Angeles
32
  **Example 4:** What is the superlative of good? Best
33
+ **Example 5:** What are the first 10 numbers in the Fibonacci sequence? 0, 1, 1, 2, 3, 5, 8, 13, 21, 34
34
 
35
  **Final answer:**
36