skytnt commited on
Commit
1752002
1 Parent(s): 5b21cca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 != 9 else 10
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()):