asigalov61 commited on
Commit
3eaf1f8
·
verified ·
1 Parent(s): fa31cf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -166,7 +166,7 @@ def Generate_POP_Section(input_comp_section,
166
 
167
  seq += input_seq
168
 
169
- x = torch.LongTensor(seq).cuda()
170
 
171
  with ctx:
172
  out = model.generate(x,
 
166
 
167
  seq += input_seq
168
 
169
+ x = torch.LongTensor(seq).to(DEVICE)
170
 
171
  with ctx:
172
  out = model.generate(x,