Gregniuki commited on
Commit
9803f38
1 Parent(s): d3d1ac7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}.safetensors"))
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(