Update app.py
Browse files
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"
|
27 |
-
model_config_path = f"
|
|
|
|
|
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
|