From 5539ec6cb29bb466a04a9e1eb0466fdc015dc2be Mon Sep 17 00:00:00 2001 From: Tasha Upchurch Date: Sun, 28 May 2023 01:30:33 -0400 Subject: [PATCH] bugfix --- image.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/image.py b/image.py index 06a1d2e..d83a026 100644 --- a/image.py +++ b/image.py @@ -275,9 +275,10 @@ class ExecWidget: return (out_string, out_image, out_float,) @classmethod - def IS_CHANGED(s, name): + def IS_CHANGED(s, text_to_eval, image1_in: torch.Tensor = None, float1_in: float = 0.0, string1_in: str = "", + name: str = "exec_func"): m = hashlib.sha256() - m.update(name) + m.update(name.encode("utf-8")) return m.digest().hex()