Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Return null for value format

space-nukoe2d080b69417
diff --git a/execution.py b/execution.py
index f79c3d351..9cebce928 100644
--- a/execution.py
+++ b/execution.py
@@ -103,7 +103,9 @@ def get_output_data(obj, input_data_all):
return output, ui
def format_value(x):
- if isinstance(x, (int, float, bool, str)):
+ if x is None:
+ return None
+ elif isinstance(x, (int, float, bool, str)):
return x
else:
return str(x)