Update app.py
Browse files
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 |
|