Refactor recipe saving process to utilize workflow JSON and enhance Lora handling

- Updated the recipe saving logic to accept a workflow JSON input instead of individual fields like name, tags, and metadata.
- Implemented parsing of the workflow to extract generation parameters and Lora stack, improving the recipe creation process.
- Enhanced error handling for missing workflow data and invalid Lora formats.
- Removed deprecated code related to individual field handling, streamlining the recipe saving functionality.
- Updated the front-end widget to send the workflow JSON directly, simplifying the data preparation process.
This commit is contained in:
Will Miao
2025-03-21 17:28:20 +08:00
parent 4bff17aa1a
commit 8e653e2173
3 changed files with 68 additions and 91 deletions

View File

@@ -44,7 +44,6 @@ class ExifUtils:
return None
except Exception as e:
logger.error(f"Error extracting EXIF data from {image_path}: {e}")
return None
@staticmethod