Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,8 +56,7 @@ print('=' * 70)
|
|
| 56 |
|
| 57 |
#==================================================================================
|
| 58 |
|
| 59 |
-
MODEL_CHECKPOINT = '
|
| 60 |
-
# MODEL_CHECKPOINT = 'Orpheus_Bridge_Music_Transformer_Trained_Model_43450_steps_0.8334_loss_0.7629_acc.pth'
|
| 61 |
|
| 62 |
SOUDFONT_PATH = 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2'
|
| 63 |
|
|
@@ -255,6 +254,9 @@ def Generate_Music_Bridge(input_midi,
|
|
| 255 |
rcount += 1
|
| 256 |
print('Regenerating attempt #', rcount)
|
| 257 |
|
|
|
|
|
|
|
|
|
|
| 258 |
final_song = left_chunk + y[:-64] + right_chunk
|
| 259 |
|
| 260 |
#==================================================================
|
|
|
|
| 56 |
|
| 57 |
#==================================================================================
|
| 58 |
|
| 59 |
+
MODEL_CHECKPOINT = 'Orpheus_Bridge_Music_Transformer_Trained_Model_43450_steps_0.8334_loss_0.7629_acc.pth'
|
|
|
|
| 60 |
|
| 61 |
SOUDFONT_PATH = 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2'
|
| 62 |
|
|
|
|
| 254 |
rcount += 1
|
| 255 |
print('Regenerating attempt #', rcount)
|
| 256 |
|
| 257 |
+
if rcount == 3:
|
| 258 |
+
break
|
| 259 |
+
|
| 260 |
final_song = left_chunk + y[:-64] + right_chunk
|
| 261 |
|
| 262 |
#==================================================================
|