Spaces:
Paused
Paused
Update api/ltx/ltx_aduc_pipeline.py
Browse files
api/ltx/ltx_aduc_pipeline.py
CHANGED
|
@@ -16,8 +16,14 @@ from api.ltx.ltx_aduc_manager import ltx_aduc_manager
|
|
| 16 |
# O cliente precisa da definição de LatentConditioningItem para os seus inputs
|
| 17 |
from api.ltx.vae_aduc_pipeline import LatentConditioningItem
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# ==============================================================================
|
| 23 |
# --- FUNÇÕES DE TRABALHO (Jobs a serem executados no Pool LTX) ---
|
|
|
|
| 16 |
# O cliente precisa da definição de LatentConditioningItem para os seus inputs
|
| 17 |
from api.ltx.vae_aduc_pipeline import LatentConditioningItem
|
| 18 |
|
| 19 |
+
|
| 20 |
+
DEPS_DIR = Path("/data")
|
| 21 |
+
LTX_VIDEO_REPO_DIR = DEPS_DIR / "LTX-Video"
|
| 22 |
+
repo_path = str(LTX_VIDEO_REPO_DIR.resolve())
|
| 23 |
+
if str(LTX_VIDEO_REPO_DIR.resolve()) not in sys.path:
|
| 24 |
+
sys.path.insert(0, repo_path)
|
| 25 |
+
print(f"[DEBUG] Repo adicionado ao sys.path: {repo_path}")
|
| 26 |
+
from ltx_video.pipelines.pipeline_ltx_video import LTXVideoPipeline
|
| 27 |
|
| 28 |
# ==============================================================================
|
| 29 |
# --- FUNÇÕES DE TRABALHO (Jobs a serem executados no Pool LTX) ---
|