Tharun156 commited on
Commit
f58a55b
Β·
verified Β·
1 Parent(s): 5708109

Update hf_space/app.py

Browse files
Files changed (1) hide show
  1. hf_space/app.py +6 -2
hf_space/app.py CHANGED
@@ -38,9 +38,9 @@ if weights_repo:
38
  )
39
 
40
  # Ensure expected runtime directories exist so the demo can write outputs.
41
- datasets_hub_dir = BASE_DIR / "datasets" / "hub"
42
  for relative in ["outputs/audio2pose", "datasets/BEAT_SMPL", "datasets/hub"]:
43
- (BASE_DIR / relative).mkdir(parents=True, exist_ok=True)
44
 
45
  smplx_dest = datasets_hub_dir / "smplx_models"
46
  smplx_dest.mkdir(parents=True, exist_ok=True)
@@ -86,6 +86,10 @@ if nested_smplx.exists() and nested_smplx.is_dir():
86
  except OSError:
87
  pass
88
 
 
 
 
 
89
  # Reuse the existing Gradio interface defined in demo.py.
90
  from demo import demo as gesture_demo # noqa: E402
91
 
 
38
  )
39
 
40
  # Ensure expected runtime directories exist so the demo can write outputs.
41
+ datasets_hub_dir = ROOT_DIR / "datasets" / "hub"
42
  for relative in ["outputs/audio2pose", "datasets/BEAT_SMPL", "datasets/hub"]:
43
+ (ROOT_DIR / relative).mkdir(parents=True, exist_ok=True)
44
 
45
  smplx_dest = datasets_hub_dir / "smplx_models"
46
  smplx_dest.mkdir(parents=True, exist_ok=True)
 
86
  except OSError:
87
  pass
88
 
89
+ print("[GestureLSM] smplx_models contents:")
90
+ for item in smplx_dest.glob("*"):
91
+ print(" -", item.name)
92
+
93
  # Reuse the existing Gradio interface defined in demo.py.
94
  from demo import demo as gesture_demo # noqa: E402
95