From d1887993f39b2627fb53855a5e31d27d8aab775e Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Thu, 2 Jul 2020 17:35:56 -0500 Subject: [PATCH] fixed syntax error --- gradio/inputs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gradio/inputs.py b/gradio/inputs.py index 7985e5a6c2..8d6379bbcd 100644 --- a/gradio/inputs.py +++ b/gradio/inputs.py @@ -308,11 +308,12 @@ class Image(AbstractInput): return array def process_example(self, example): - if os.path.exists(example) + if os.path.exists(example): return preprocessing_utils.convert_file_to_base64(example) else: return example + class Microphone(AbstractInput): def preprocess(self, inp):