Update amazonmix.py
Browse files- amazonmix.py +1 -1
amazonmix.py
CHANGED
|
@@ -29,7 +29,7 @@ def extract_solution(solution_str):
|
|
| 29 |
format3_match = re.findall(r'[A-Z]', final_answer.upper())
|
| 30 |
if format1_match:
|
| 31 |
# return format1_match.group(1).strip(), processed_str
|
| 32 |
-
return ','.join(format1_match)
|
| 33 |
elif format2_match:
|
| 34 |
return format2_match[-1].strip(), processed_str
|
| 35 |
elif format3_match:
|
|
|
|
| 29 |
format3_match = re.findall(r'[A-Z]', final_answer.upper())
|
| 30 |
if format1_match:
|
| 31 |
# return format1_match.group(1).strip(), processed_str
|
| 32 |
+
return ','.join(format1_match), processed_str
|
| 33 |
elif format2_match:
|
| 34 |
return format2_match[-1].strip(), processed_str
|
| 35 |
elif format3_match:
|