Update preprocessing_router.py
Browse files- preprocessing_router.py +4 -2
preprocessing_router.py
CHANGED
|
@@ -222,9 +222,9 @@ async def finalize_casting(
|
|
| 222 |
video_name = payload.get("video_name")
|
| 223 |
base_dir = payload.get("base_dir")
|
| 224 |
characters = payload.get("characters", []) or []
|
|
|
|
| 225 |
voice_clusters = payload.get("voice_clusters", []) or []
|
| 226 |
-
|
| 227 |
-
print(voice_clusters)
|
| 228 |
if not video_name or not base_dir:
|
| 229 |
raise HTTPException(status_code=400, detail="Missing video_name or base_dir")
|
| 230 |
|
|
@@ -383,6 +383,8 @@ async def finalize_casting(
|
|
| 383 |
except Exception:
|
| 384 |
casting_json["voice_col"] = []
|
| 385 |
|
|
|
|
|
|
|
| 386 |
return {
|
| 387 |
"ok": True,
|
| 388 |
"video_name": video_name,
|
|
|
|
| 222 |
video_name = payload.get("video_name")
|
| 223 |
base_dir = payload.get("base_dir")
|
| 224 |
characters = payload.get("characters", []) or []
|
| 225 |
+
video_hash = payload.get("video_hash") or "empty"
|
| 226 |
voice_clusters = payload.get("voice_clusters", []) or []
|
| 227 |
+
|
|
|
|
| 228 |
if not video_name or not base_dir:
|
| 229 |
raise HTTPException(status_code=400, detail="Missing video_name or base_dir")
|
| 230 |
|
|
|
|
| 383 |
except Exception:
|
| 384 |
casting_json["voice_col"] = []
|
| 385 |
|
| 386 |
+
print(casting_json)
|
| 387 |
+
|
| 388 |
return {
|
| 389 |
"ok": True,
|
| 390 |
"video_name": video_name,
|