Bils commited on
Commit
30c06ca
·
verified ·
1 Parent(s): 0fc4d3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -113,6 +113,15 @@ def prepare_once():
113
 
114
  prepare_once()
115
 
 
 
 
 
 
 
 
 
 
116
  # Now safe to import their internals
117
  from hunyuanvideo_foley.utils.model_utils import load_model, denoise_process
118
  from hunyuanvideo_foley.utils.feature_utils import feature_process
 
113
 
114
  prepare_once()
115
 
116
+ # ---- Friendly dependency check (so the error is clear) -----------------------
117
+ try:
118
+ import audiotools # noqa: F401
119
+ except Exception as e:
120
+ raise RuntimeError(
121
+ "Missing dependency 'audiotools'. "
122
+ "Add 'audiotools>=0.7.2' to requirements.txt and restart the Space."
123
+ ) from e
124
+
125
  # Now safe to import their internals
126
  from hunyuanvideo_foley.utils.model_utils import load_model, denoise_process
127
  from hunyuanvideo_foley.utils.feature_utils import feature_process