Skip to content

Commit 36a3fba

Browse files
skunkworxdarkhipsterusername
authored andcommitted
Update metadata_linked.py
Fix input type of default_value on MetadataToFloatInvocation
1 parent b2ff830 commit 36a3fba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/app/invocations/metadata_linked.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def invoke(self, context: InvocationContext) -> IntegerOutput:
361361
title="Metadata To Float",
362362
tags=["metadata"],
363363
category="metadata",
364-
version="1.0.0",
364+
version="1.1.0",
365365
classification=Classification.Beta,
366366
)
367367
class MetadataToFloatInvocation(BaseInvocation, WithMetadata):
@@ -377,7 +377,7 @@ class MetadataToFloatInvocation(BaseInvocation, WithMetadata):
377377
description=FieldDescriptions.metadata_item_label,
378378
input=Input.Direct,
379379
)
380-
default_value: int = InputField(description="The default float to use if not found in the metadata")
380+
default_value: float = InputField(description="The default float to use if not found in the metadata")
381381

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

0 commit comments

Comments
 (0)