mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-15 02:11:15 +08:00
fixed Parallel() bug
This commit is contained in:
parent
36dcd4ea95
commit
517607f462
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user