Skip to content

Commit 380f95c

Browse files
authored
Fix finetuning python regex syntax error (opea-project#1446)
Signed-off-by: Eero Tamminen <[email protected]>
1 parent ea3374f commit 380f95c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comps/finetuning/src/integrations/native.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def list_finetuning_checkpoints(self, request: FineTuningJobIDRequest):
201201
for file in files: # Loop over directory contents
202202
file_path = os.path.join(output_dir, file)
203203
if os.path.isdir(file_path) and file.startswith("checkpoint"):
204-
steps = re.findall("\d+", file)[0]
204+
steps = re.findall(r"\d+", file)[0]
205205
checkpointsResponse = FineTuningJobCheckpoint(
206206
id=f"ftckpt-{uuid.uuid4()}", # Generate a unique ID
207207
created_at=int(time.time()), # Use the current timestamp

0 commit comments

Comments
 (0)