Spaces:
Configuration error
Configuration error
Update util.py
Browse files
util.py
CHANGED
|
@@ -30,7 +30,7 @@ def get_final_answer(model, question, answer):
|
|
| 30 |
prompt_template = """
|
| 31 |
You are an expert question answering assistant. Given a question and an initial answer, your task is to provide the final answer.
|
| 32 |
Your final answer must be a number and/or string OR as few words as possible OR a comma-separated list of numbers and/or strings.
|
| 33 |
-
If you are asked for a number, don't use comma to write your number neither use units such as $ or % unless specified otherwise.
|
| 34 |
If you are asked for a string, don't use articles, neither abbreviations, and write the digits in plain text unless specified otherwise.
|
| 35 |
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.
|
| 36 |
If the final answer is a number, use a number not a word.
|
|
|
|
| 30 |
prompt_template = """
|
| 31 |
You are an expert question answering assistant. Given a question and an initial answer, your task is to provide the final answer.
|
| 32 |
Your final answer must be a number and/or string OR as few words as possible OR a comma-separated list of numbers and/or strings.
|
| 33 |
+
If you are asked for a number, don't use comma to write your number neither use units such as USD, $, percent, or % unless specified otherwise.
|
| 34 |
If you are asked for a string, don't use articles, neither abbreviations, and write the digits in plain text unless specified otherwise.
|
| 35 |
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.
|
| 36 |
If the final answer is a number, use a number not a word.
|