mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-15 02:11:15 +08:00
fixed Series error if first interface has multiple inputs
This commit is contained in:
parent
a883bd9af3
commit
53fba391fa
@ -42,8 +42,7 @@ class Series(Interface):
|
||||
def __init__(self, *interfaces, **options):
|
||||
fns = [io.predict for io in interfaces]
|
||||
|
||||
def connected_fn(data): # Run each function with the appropriate preprocessing and postprocessing
|
||||
data = [data] # put it in a list before it gets unraveled
|
||||
def connected_fn(*data): # Run each function with the appropriate preprocessing and postprocessing
|
||||
for idx, io in enumerate(interfaces):
|
||||
# skip preprocessing for first interface since the compound interface will include it
|
||||
if idx > 0:
|
||||
|
Loading…
Reference in New Issue
Block a user