Bc-AI commited on
Commit
61711fe
·
verified ·
1 Parent(s): 43d4fee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -666,8 +666,10 @@ def get_latest_checkpoint():
666
  checkpoints = [
667
  filename
668
  for filename in files
669
- if "codva2_sft" in filename.lower()
670
- and filename.endswith(".pt")
 
 
671
  ]
672
 
673
  if not checkpoints:
 
666
  checkpoints = [
667
  filename
668
  for filename in files
669
+ if filename.endswith(".pt")
670
+ and "config" not in filename
671
+ and "final" not in filename
672
+ and re.search(r"step[_-]?\d+", filename, re.IGNORECASE)
673
  ]
674
 
675
  if not checkpoints: