projectlosangeles commited on
Commit
4aaab5c
·
verified ·
1 Parent(s): 8e6911a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -185,7 +185,7 @@ def generate_chords(chords,
185
 
186
  cho_prg = [c for c in cho_prg if 0 <= c < 321]
187
 
188
- cho_prg = [c+140 for c in cho_prg]
189
 
190
  print('Done!')
191
  print('*' * 70)
@@ -193,7 +193,7 @@ def generate_chords(chords,
193
  print('*' * 70)
194
  print('Texturing selected generated chords progression...')
195
 
196
- x = torch.LongTensor([718] + cho_prg + [719]).to(DEVICE)
197
 
198
  with ctx:
199
  out = tex_model.generate(x,
 
185
 
186
  cho_prg = [c for c in cho_prg if 0 <= c < 321]
187
 
188
+ inp_cho_prg = [c+140 for c in cho_prg]
189
 
190
  print('Done!')
191
  print('*' * 70)
 
193
  print('*' * 70)
194
  print('Texturing selected generated chords progression...')
195
 
196
+ x = torch.LongTensor([718] + inp_cho_prg + [719]).to(DEVICE)
197
 
198
  with ctx:
199
  out = tex_model.generate(x,