Update README.md
Browse files
README.md
CHANGED
|
@@ -42,13 +42,15 @@ import torch
|
|
| 42 |
from huggingface_hub import hf_hub_download
|
| 43 |
from src.accentcl.models.accentcl import WhisperCLAccentModel
|
| 44 |
|
|
|
|
|
|
|
| 45 |
# Download model configuration
|
| 46 |
hf_hub_download(repo_id, "config.json")
|
| 47 |
|
| 48 |
# Download the selected checkpoint
|
| 49 |
checkpoint = hf_hub_download(
|
| 50 |
-
repo_id
|
| 51 |
-
|
| 52 |
)
|
| 53 |
|
| 54 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 42 |
from huggingface_hub import hf_hub_download
|
| 43 |
from src.accentcl.models.accentcl import WhisperCLAccentModel
|
| 44 |
|
| 45 |
+
repo_id = "Morris88826/accentcl"
|
| 46 |
+
|
| 47 |
# Download model configuration
|
| 48 |
hf_hub_download(repo_id, "config.json")
|
| 49 |
|
| 50 |
# Download the selected checkpoint
|
| 51 |
checkpoint = hf_hub_download(
|
| 52 |
+
repo_id,
|
| 53 |
+
"accentcl_spanish_chinese.pt"
|
| 54 |
)
|
| 55 |
|
| 56 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|