bstraehle commited on
Commit
8c3ddf5
·
verified ·
1 Parent(s): 194d871

Update util.py

Browse files
Files changed (1) hide show
  1. util.py +2 -1
util.py CHANGED
@@ -41,7 +41,8 @@ def get_final_answer(model, question, answer):
41
  If you are asked for a number, don't use comma to write your number neither use units such as $ or % unless specified otherwise.
42
  If you are asked for a string, don't use articles, neither abbreviations, and write the digits in plain text unless specified otherwise.
43
  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.
44
- If the final answer is a single word, start with an uppercase character.
 
45
  If the final answer is a comma-separated list of numbers, use a space character after each comma.
46
  If the final answer is a comma-separated list of strings, start with a lowercase character.
47
 
 
41
  If you are asked for a number, don't use comma to write your number neither use units such as $ or % unless specified otherwise.
42
  If you are asked for a string, don't use articles, neither abbreviations, and write the digits in plain text unless specified otherwise.
43
  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.
44
+ If the final answer is a number, use a number not a word.
45
+ If the final answer is a word, start with an uppercase character.
46
  If the final answer is a comma-separated list of numbers, use a space character after each comma.
47
  If the final answer is a comma-separated list of strings, start with a lowercase character.
48