From 1a1c3e1773c4d6b73a90f1abef77ef0e2f209fa9 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Fri, 19 Jun 2020 14:29:28 -0500 Subject: [PATCH] fixed image preproessing --- gradio/inputs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradio/inputs.py b/gradio/inputs.py index 9c40e5a425..67d927229f 100644 --- a/gradio/inputs.py +++ b/gradio/inputs.py @@ -316,7 +316,7 @@ class ImageIn(AbstractInput): Default preprocessing method for is to convert the picture to black and white and resize to be 48x48 """ cast_to_type = { - "base64": self.cast_to_base64(), + "base64": self.cast_to_base64, "numpy": self.cast_to_numpy, "pillow": self.cast_to_im }