Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -185,7 +185,7 @@ def generate_chords(chords,
|
|
| 185 |
|
| 186 |
cho_prg = [c for c in cho_prg if 0 <= c < 321]
|
| 187 |
|
| 188 |
-
|
| 189 |
|
| 190 |
print('Done!')
|
| 191 |
print('*' * 70)
|
|
@@ -193,7 +193,7 @@ def generate_chords(chords,
|
|
| 193 |
print('*' * 70)
|
| 194 |
print('Texturing selected generated chords progression...')
|
| 195 |
|
| 196 |
-
x = torch.LongTensor([718] +
|
| 197 |
|
| 198 |
with ctx:
|
| 199 |
out = tex_model.generate(x,
|
|
|
|
| 185 |
|
| 186 |
cho_prg = [c for c in cho_prg if 0 <= c < 321]
|
| 187 |
|
| 188 |
+
inp_cho_prg = [c+140 for c in cho_prg]
|
| 189 |
|
| 190 |
print('Done!')
|
| 191 |
print('*' * 70)
|
|
|
|
| 193 |
print('*' * 70)
|
| 194 |
print('Texturing selected generated chords progression...')
|
| 195 |
|
| 196 |
+
x = torch.LongTensor([718] + inp_cho_prg + [719]).to(DEVICE)
|
| 197 |
|
| 198 |
with ctx:
|
| 199 |
out = tex_model.generate(x,
|