Ariamehr commited on
Commit
9263bcd
·
verified ·
1 Parent(s): b618a65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(os.path.dirname(__file__), "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)
 
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)