ElectricAlexis commited on
Commit
e504837
Β·
verified Β·
1 Parent(s): 1ccf280

Upload inference.py

Browse files
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -364,7 +364,7 @@ def inference_patch(period, composer, instrumentation):
364
  input_patches = torch.tensor([input_patches], device=device)
365
  input_patches = input_patches.reshape(1, -1)
366
 
367
- context_tunebody_byte_list = []
368
 
369
  if not failure_flag:
370
  abc_text = ''.join(byte_list)
 
364
  input_patches = torch.tensor([input_patches], device=device)
365
  input_patches = input_patches.reshape(1, -1)
366
 
367
+ context_tunebody_byte_list = list(''.join(context_tunebody_lines[-cut_index:]))
368
 
369
  if not failure_flag:
370
  abc_text = ''.join(byte_list)