jadechoghari
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -21,7 +21,8 @@ It is based on this [repo](https://github.com/skirdey/voicerestore) & demo of au
|
|
21 |
from transformers import AutoModel
|
22 |
# path to the model folder (on colab it's as follows)
|
23 |
checkpoint_path = "/content/VoiceRestore"
|
24 |
-
|
|
|
25 |
model("test_input.wav", "test_output.wav")
|
26 |
```
|
27 |
|
|
|
21 |
from transformers import AutoModel
|
22 |
# path to the model folder (on colab it's as follows)
|
23 |
checkpoint_path = "/content/VoiceRestore"
|
24 |
+
# add short=False if audio is > 10 seconds
|
25 |
+
model = AutoModel.from_pretrained(checkpoint_path, trust_remote_code=True)
|
26 |
model("test_input.wav", "test_output.wav")
|
27 |
```
|
28 |
|