Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ fix_duration = None
|
|
62 |
|
63 |
|
64 |
def load_model(page_name, repo_name, exp_name, model_cls, model_cfg, ckpt_step):
|
65 |
-
ckpt_path = str(cached_path(f"hf://{page_name}/{repo_name}/{exp_name}/model_{ckpt_step}.
|
66 |
# ckpt_path = f"ckpts/{exp_name}/model_{ckpt_step}.pt" # .pt | .safetensors
|
67 |
vocab_char_map, vocab_size = get_tokenizer("Emilia_ZH_EN", "pinyin")
|
68 |
model = CFM(
|
|
|
62 |
|
63 |
|
64 |
def load_model(page_name, repo_name, exp_name, model_cls, model_cfg, ckpt_step):
|
65 |
+
ckpt_path = str(cached_path(f"hf://{page_name}/{repo_name}/{exp_name}/model_{ckpt_step}.pt"))
|
66 |
# ckpt_path = f"ckpts/{exp_name}/model_{ckpt_step}.pt" # .pt | .safetensors
|
67 |
vocab_char_map, vocab_size = get_tokenizer("Emilia_ZH_EN", "pinyin")
|
68 |
model = CFM(
|