| def check_reverse(question:str)->bool: | |
| return question[0] in ['.','!','?'] and question[-1].isupper() | |
| def reverse(question:str)->str: | |
| return question[::-1] | |
| def check_fix_answer(answer:str)->str: | |
| return answer.split('FINAL ANSWER:')[-1].strip() |
| def check_reverse(question:str)->bool: | |
| return question[0] in ['.','!','?'] and question[-1].isupper() | |
| def reverse(question:str)->str: | |
| return question[::-1] | |
| def check_fix_answer(answer:str)->str: | |
| return answer.split('FINAL ANSWER:')[-1].strip() |