asigalov61 commited on
Commit
a139ebd
1 Parent(s): 145a49a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -242,7 +242,7 @@ def GenerateAccompaniment(input_midi, input_num_tokens, input_acc_type):
242
 
243
  ctime = cur_time
244
 
245
- out = torch.LongTensor([[o]]).cuda()
246
  x = torch.cat((x, out), 1)
247
  else:
248
  break
 
242
 
243
  ctime = cur_time
244
 
245
+ out = torch.LongTensor([[o]]).to(DEVICE)
246
  x = torch.cat((x, out), 1)
247
  else:
248
  break