Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|