projectlosangeles commited on
Commit
dc9910b
·
verified ·
1 Parent(s): dc7e7c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -56,8 +56,7 @@ print('=' * 70)
56
 
57
  #==================================================================================
58
 
59
- MODEL_CHECKPOINT = 'Orpheus_Bridge_Music_Transformer_Trained_Model_19571_steps_0.9396_loss_0.7365_acc.pth'
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
  #==================================================================