checkpoint

This commit is contained in:
Will Miao
2025-03-14 21:10:24 +08:00
parent 426e84cfa3
commit 5e4d2c7760
5 changed files with 664 additions and 693 deletions

View File

@@ -180,7 +180,6 @@ class RecipeRoutes:
# Extract metadata from the image using ExifUtils
user_comment = ExifUtils.extract_user_comment(temp_path)
print(f"User comment: {user_comment}", file=sys.stderr)
# If no metadata found, return a more specific error
if not user_comment:
@@ -191,7 +190,6 @@ class RecipeRoutes:
# Parse the recipe metadata
metadata = ExifUtils.parse_recipe_metadata(user_comment)
print(f"Metadata: {metadata}", file=sys.stderr)
# Look for Civitai resources in the metadata
civitai_resources = metadata.get('loras', [])
@@ -220,7 +218,6 @@ class RecipeRoutes:
# Get additional info from Civitai
civitai_info = await self.civitai_client.get_model_version_info(model_version_id)
print(f"Civitai info: {civitai_info}", file=sys.stderr)
# Check if this LoRA exists locally by SHA256 hash
exists_locally = False