Spaces:
Running on Zero
Running on Zero
github-actions[bot] commited on
Commit ·
8bfce29
1
Parent(s): 30a5c8e
deploy: switch to chatterbox requirements @ f090cde
Browse files- tools_api/dramabox.py +3 -1
tools_api/dramabox.py
CHANGED
|
@@ -52,7 +52,9 @@ def _ensure_server():
|
|
| 52 |
# sys.path. We add it here so this module doesn't require app.py
|
| 53 |
# to do the insert itself.
|
| 54 |
import sys
|
| 55 |
-
|
|
|
|
|
|
|
| 56 |
if vendored_src.exists() and str(vendored_src) not in sys.path:
|
| 57 |
sys.path.insert(0, str(vendored_src))
|
| 58 |
from inference_server import TTSServer # type: ignore[import-not-found]
|
|
|
|
| 52 |
# sys.path. We add it here so this module doesn't require app.py
|
| 53 |
# to do the insert itself.
|
| 54 |
import sys
|
| 55 |
+
# Match upstream layout: src/ holds inference_server.py which
|
| 56 |
+
# then puts the sibling ltx2/ on sys.path itself.
|
| 57 |
+
vendored_src = Path(__file__).parent.parent / "dramabox_src" / "src"
|
| 58 |
if vendored_src.exists() and str(vendored_src) not in sys.path:
|
| 59 |
sys.path.insert(0, str(vendored_src))
|
| 60 |
from inference_server import TTSServer # type: ignore[import-not-found]
|