endoreg-db 0.8.4.6__py3-none-any.whl → 0.8.4.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of endoreg-db might be problematic. Click here for more details.

@@ -119,13 +119,17 @@ class Command(BaseCommand):
119
119
  # Try to create model metadata using configurable approach
120
120
  model_path = self._find_model_weights_file()
121
121
  if model_path:
122
- call_command(
123
- "create_multilabel_model_meta",
124
- model_name=default_model_name,
125
- model_meta_version=1,
126
- image_classification_labelset_name=primary_labelset,
127
- model_path=str(model_path),
128
- )
122
+ call_command_kwargs = {
123
+ "model_name": default_model_name,
124
+ "model_meta_version": 1,
125
+ "image_classification_labelset_name": primary_labelset,
126
+ "model_path": str(model_path),
127
+ }
128
+ # Add bump_version flag if force_recreate is enabled
129
+ if force_recreate:
130
+ call_command_kwargs["bump_version"] = True
131
+
132
+ call_command("create_multilabel_model_meta", **call_command_kwargs)
129
133
  self.stdout.write(self.style.SUCCESS("✅ AI model metadata created successfully"))
130
134
  else:
131
135
  self.stdout.write(self.style.WARNING("⚠️ Model weights file not found. AI features may not work properly."))