Skip to content

Commit

Permalink
Update metadata_linked.py
Browse files Browse the repository at this point in the history
Fix input type of default_value on MetadataToFloatInvocation
  • Loading branch information
skunkworxdark authored and hipsterusername committed Feb 27, 2025
1 parent b2ff830 commit 36a3fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invokeai/app/invocations/metadata_linked.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def invoke(self, context: InvocationContext) -> IntegerOutput:
title="Metadata To Float",
tags=["metadata"],
category="metadata",
version="1.0.0",
version="1.1.0",
classification=Classification.Beta,
)
class MetadataToFloatInvocation(BaseInvocation, WithMetadata):
Expand All @@ -377,7 +377,7 @@ class MetadataToFloatInvocation(BaseInvocation, WithMetadata):
description=FieldDescriptions.metadata_item_label,
input=Input.Direct,
)
default_value: int = InputField(description="The default float to use if not found in the metadata")
default_value: float = InputField(description="The default float to use if not found in the metadata")

_validate_custom_label = model_validator(mode="after")(validate_custom_label)

Expand Down

0 comments on commit 36a3fba

Please sign in to comment.