This commit is contained in:
2026-06-06 22:09:00 +02:00
parent a80187ba80
commit 27c0dae20e
9 changed files with 315 additions and 69 deletions
+4
View File
@@ -88,6 +88,10 @@ do not score or give feedback to any other question."""
def make_prompt(input_dir,full_label):
def read_longest_prefix_file(subdir):
dir_path = input_dir / subdir
if not dir_path.exists():
if subdir != "Persp":
print("Warning !! Directory doesn't exist : ", dir_path)
return ""
matches = [f for f in dir_path.iterdir()
if f.is_file()
and full_label.startswith(f.name)