From 517607f46252967887c6ee76890cab873b9cd205 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Wed, 10 Nov 2021 09:38:50 -0600 Subject: [PATCH] fixed Parallel() bug --- gradio/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradio/interface.py b/gradio/interface.py index ee7ac90524..11fd49b231 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -348,7 +348,7 @@ class Interface: if self.api_mode: # Serialize the input prediction_ = copy.deepcopy(prediction) prediction = [] - for pred in prediction_: + for pred in prediction_: # Done this way to handle both single interfaces with multiple outputs and Parallel() interfaces prediction.append(self.output_components[output_component_counter].deserialize(pred)) output_component_counter += 1