mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
Add functionality to save recipes from the LoRAs widget
- Introduced a new API endpoint to save recipes directly from the LoRAs widget. - Implemented logic to handle recipe data, including image processing and metadata extraction. - Enhanced error handling for missing fields and image retrieval. - Updated the ExifUtils to extract generation parameters from images for recipe creation. - Added a direct save option in the widget, improving user experience.
This commit is contained in:
@@ -517,14 +517,10 @@ class RecipeParserFactory:
|
||||
Appropriate RecipeMetadataParser implementation
|
||||
"""
|
||||
if RecipeFormatParser().is_metadata_matching(user_comment):
|
||||
logger.info("RecipeFormatParser")
|
||||
return RecipeFormatParser()
|
||||
elif StandardMetadataParser().is_metadata_matching(user_comment):
|
||||
logger.info("StandardMetadataParser")
|
||||
return StandardMetadataParser()
|
||||
elif A1111MetadataParser().is_metadata_matching(user_comment):
|
||||
logger.info("A1111MetadataParser")
|
||||
return A1111MetadataParser()
|
||||
else:
|
||||
logger.info("No parser found for this image")
|
||||
return None
|
||||
Reference in New Issue
Block a user