Update rl_replacements.py
This commit is contained in:
parent
7eb2b62b16
commit
51aa56efb9
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ def sft_trainer_prepare_dataset(function_name, function):
|
|||
|
||||
# .*? matches first match. .+? matches final match.
|
||||
replacer = re.findall(
|
||||
r"def {function_name}\(.*?\).*?\:\n",
|
||||
r"def " + function_name + r"\(.*?\).*?\:\n",
|
||||
function,
|
||||
flags = re.MULTILINE | re.DOTALL,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue