Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ print('=' * 70)
|
|
56 |
|
57 |
#==================================================================================
|
58 |
|
59 |
-
|
60 |
|
61 |
SOUDFONT_PATH = 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2'
|
62 |
|
@@ -90,7 +90,7 @@ model = AutoregressiveWrapper(model, ignore_index=PAD_IDX, pad_value=PAD_IDX)
|
|
90 |
print('=' * 70)
|
91 |
print('Loading model checkpoint...')
|
92 |
|
93 |
-
model_checkpoint = hf_hub_download(repo_id='asigalov61/Guided-Accompaniment-Transformer', filename=
|
94 |
|
95 |
model.load_state_dict(torch.load(model_checkpoint, map_location='cpu', weights_only=True))
|
96 |
|
|
|
56 |
|
57 |
#==================================================================================
|
58 |
|
59 |
+
MODEL_CHECKPOINT = 'Guided_Accompaniment_Transformer_Trained_Model_36457_steps_0.5384_loss_0.8417_acc.pth'
|
60 |
|
61 |
SOUDFONT_PATH = 'SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2'
|
62 |
|
|
|
90 |
print('=' * 70)
|
91 |
print('Loading model checkpoint...')
|
92 |
|
93 |
+
model_checkpoint = hf_hub_download(repo_id='asigalov61/Guided-Accompaniment-Transformer', filename=MODEL_CHECKPOINT)
|
94 |
|
95 |
model.load_state_dict(torch.load(model_checkpoint, map_location='cpu', weights_only=True))
|
96 |
|