Update README.md
Browse files
README.md
CHANGED
@@ -49,7 +49,7 @@ from transformers import AutoModel, AutoTokenizer
|
|
49 |
import torch
|
50 |
import numpy as np
|
51 |
|
52 |
-
model = AutoModel.from_pretrained('
|
53 |
device = model.device
|
54 |
# sample rate: 16k
|
55 |
music_path = '/path/to/music.wav'
|
@@ -90,7 +90,7 @@ print(gen_text)
|
|
90 |
## Example
|
91 |
|
92 |
### music:
|
93 |
-
https://huggingface.co/
|
94 |
|
95 |
### caption:
|
96 |
This particular song falls under the genre of Pop and has a vocal focus.
|
|
|
49 |
import torch
|
50 |
import numpy as np
|
51 |
|
52 |
+
model = AutoModel.from_pretrained('UniMus/OpenJMLA', trust_remote_code=True)
|
53 |
device = model.device
|
54 |
# sample rate: 16k
|
55 |
music_path = '/path/to/music.wav'
|
|
|
90 |
## Example
|
91 |
|
92 |
### music:
|
93 |
+
https://huggingface.co/UniMus/OpenJMLA/blob/main/6774978832668559373.wav
|
94 |
|
95 |
### caption:
|
96 |
This particular song falls under the genre of Pop and has a vocal focus.
|