Emaad commited on
Commit
fece6fa
1 Parent(s): 5d4081d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -23,8 +23,10 @@ class model:
23
 
24
  if self.model_name != model_name:
25
  self.model_name = model_name
26
- model_ckpt_path = f"CELL-E_2-Image_Prediction/models/{model_name}.ckpt"
27
- model_config_path = f"CELL-E_2-Image_Prediction/models/{model_name}.yaml"
 
 
28
 
29
 
30
  # Load model config and set ckpt_path if not provided in config
 
23
 
24
  if self.model_name != model_name:
25
  self.model_name = model_name
26
+ model_ckpt_path = hf_hub_download(repo_id=f"HuangLab/{model_name}", filename="model.ckpt")
27
+ model_config_path = hf_hub_download(repo_id=f"HuangLab/{model_name}", filename="config.yaml")
28
+ hf_hub_download(repo_id=f"HuangLab/{model_name}", filename="nucleus_vqgan.yaml")
29
+ hf_hub_download(repo_id=f"HuangLab/{model_name}", filename="threshold_vqgan.yaml")
30
 
31
 
32
  # Load model config and set ckpt_path if not provided in config