Princess3 commited on
Commit
f95d6bf
·
verified ·
1 Parent(s): 94fd810

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -143,7 +143,7 @@ def create_model_from_folder(folder_path: str) -> DynamicModel:
143
  print(f"Warning: Folder {folder_path} does not exist. Creating model with default configuration.")
144
  return DynamicModel({})
145
 
146
- xml_files_found = False
147
  for root, dirs, files in os.walk(folder_path):
148
  for file in files:
149
  if file.endswith('.xml'):
 
143
  print(f"Warning: Folder {folder_path} does not exist. Creating model with default configuration.")
144
  return DynamicModel({})
145
 
146
+ xml_files_found = True
147
  for root, dirs, files in os.walk(folder_path):
148
  for file in files:
149
  if file.endswith('.xml'):