Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -154,7 +154,7 @@ def run(tab, instruments, drum_kit, mid, midi_events, gen_events, temp, top_p, t
|
|
154 |
patches = {}
|
155 |
for instr in instruments:
|
156 |
patches[i] = patch2number[instr]
|
157 |
-
i = (i + 1) if i !=
|
158 |
if drum_kit != "None":
|
159 |
patches[9] = drum_kits2number[drum_kit]
|
160 |
for i, (c, p) in enumerate(patches.items()):
|
|
|
154 |
patches = {}
|
155 |
for instr in instruments:
|
156 |
patches[i] = patch2number[instr]
|
157 |
+
i = (i + 1) if i != 8 else 10
|
158 |
if drum_kit != "None":
|
159 |
patches[9] = drum_kits2number[drum_kit]
|
160 |
for i, (c, p) in enumerate(patches.items()):
|