Update preprocessing_router.py
Browse files- preprocessing_router.py +5 -1
preprocessing_router.py
CHANGED
|
@@ -236,10 +236,14 @@ async def finalize_casting(
|
|
| 236 |
voice_clusters = payload.get("voice_clusters", []) or []
|
| 237 |
|
| 238 |
MEDIA_ROOT = _P("/data/media")
|
| 239 |
-
video_hash = find_video_hash(video_name,MEDIA_ROOT)
|
| 240 |
print(video_name)
|
|
|
|
| 241 |
print(characters)
|
|
|
|
| 242 |
print(voice_clusters)
|
|
|
|
|
|
|
| 243 |
if not video_name or not base_dir:
|
| 244 |
raise HTTPException(status_code=400, detail="Missing video_name or base_dir")
|
| 245 |
|
|
|
|
| 236 |
voice_clusters = payload.get("voice_clusters", []) or []
|
| 237 |
|
| 238 |
MEDIA_ROOT = _P("/data/media")
|
| 239 |
+
video_hash = find_video_hash(video_name+".mp4",MEDIA_ROOT)
|
| 240 |
print(video_name)
|
| 241 |
+
print("====================")
|
| 242 |
print(characters)
|
| 243 |
+
print("==============")
|
| 244 |
print(voice_clusters)
|
| 245 |
+
print("==============")
|
| 246 |
+
print(video_hash)
|
| 247 |
if not video_name or not base_dir:
|
| 248 |
raise HTTPException(status_code=400, detail="Missing video_name or base_dir")
|
| 249 |
|