comfy update broke something... fix #70

This commit is contained in:
cubiq
2024-08-16 09:57:27 +02:00
parent ed443624ba
commit 1526e2c18a
+5 -2
View File
@@ -11,8 +11,8 @@ class SimpleMath:
def INPUT_TYPES(s):
return {
"optional": {
"a": ("INT,FLOAT", { "default": 0.0, "step": 0.1 }),
"b": ("INT,FLOAT", { "default": 0.0, "step": 0.1 }),
"a": (any, { "default": 0.0 }),
"b": (any, { "default": 0.0 }),
},
"required": {
"value": ("STRING", { "multiline": False, "default": "" }),
@@ -27,6 +27,9 @@ class SimpleMath:
import ast
import operator as op
a = float(a)
b = float(b)
operators = {
ast.Add: op.add,
ast.Sub: op.sub,