projectlosangeles commited on
Commit
6740ffa
·
verified ·
1 Parent(s): 2b5a772

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -251,6 +251,7 @@ def Inpaint_Pitches(input_midi,
251
  x = torch.LongTensor(inpainted_song[-num_mem_tokens:]).cuda()
252
 
253
  tries = 0
 
254
 
255
  while (new_pitch > old_pitch + max_inpainted_pitch_dev or new_pitch < old_pitch - max_inpainted_pitch_dev) and tries < max_inpaint_tries_per_note:
256
 
 
251
  x = torch.LongTensor(inpainted_song[-num_mem_tokens:]).cuda()
252
 
253
  tries = 0
254
+ new_pitch = -1
255
 
256
  while (new_pitch > old_pitch + max_inpainted_pitch_dev or new_pitch < old_pitch - max_inpainted_pitch_dev) and tries < max_inpaint_tries_per_note:
257