asigalov61 commited on
Commit
832c4d6
·
verified ·
1 Parent(s): 2a82684

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -206,7 +206,7 @@ def Generate_Rock_Song(input_midi,
206
 
207
  def generate_continuation(num_prime_tokens, num_gen_tokens):
208
 
209
- x = torch.tensor(prime_toks[:num_prime_tokens], dtype=torch.long, device=DEVICE)
210
 
211
  with ctx:
212
  out = model.generate(x,
 
206
 
207
  def generate_continuation(num_prime_tokens, num_gen_tokens):
208
 
209
+ x = torch.tensor(TMIDIX.flatten(prime_toks)[:num_prime_tokens], dtype=torch.long, device=DEVICE)
210
 
211
  with ctx:
212
  out = model.generate(x,