Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
1c47239
1
Parent(s):
2a68ddd
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,7 +83,7 @@ def GenerateMIDI(num_tok, idrums, iinstr):
|
|
| 83 |
pitch = 0
|
| 84 |
channel = 0
|
| 85 |
|
| 86 |
-
for i in range(num_tok):
|
| 87 |
inp = torch.LongTensor([outy]).cpu()
|
| 88 |
|
| 89 |
out = model.module.generate(inp,
|
|
|
|
| 83 |
pitch = 0
|
| 84 |
channel = 0
|
| 85 |
|
| 86 |
+
for i in range(max(1, min(512, num_tok))):
|
| 87 |
inp = torch.LongTensor([outy]).cpu()
|
| 88 |
|
| 89 |
out = model.module.generate(inp,
|