Spaces:
Runtime error
Runtime error
Update model.py
Browse files
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 =
|
| 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'):
|