Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def create_legend_image(labels_to_ids: dict[str, int], filename="legend.png"):
|
|
134 |
|
135 |
URL = "https://huggingface.co/facebook/sapiens/blob/main/sapiens_lite_host/torchscript/normal/checkpoints/sapiens_2b/sapiens_2b_normal_render_people_epoch_70_torchscript.pt2?download=true"
|
136 |
CHECKPOINTS_DIR = os.path.join(ASSETS_DIR, "checkpoints")
|
137 |
-
model_path = os.path.join(
|
138 |
|
139 |
if not os.path.exists(model_path):
|
140 |
os.makedirs(CHECKPOINTS_DIR, exist_ok=True)
|
|
|
134 |
|
135 |
URL = "https://huggingface.co/facebook/sapiens/blob/main/sapiens_lite_host/torchscript/normal/checkpoints/sapiens_2b/sapiens_2b_normal_render_people_epoch_70_torchscript.pt2?download=true"
|
136 |
CHECKPOINTS_DIR = os.path.join(ASSETS_DIR, "checkpoints")
|
137 |
+
model_path = os.path.join(CHECKPOINTS_DIR, "sapiens_2b_normal_render_people_epoch_70_torchscript.pt2")
|
138 |
|
139 |
if not os.path.exists(model_path):
|
140 |
os.makedirs(CHECKPOINTS_DIR, exist_ok=True)
|