()
| 58 | |
| 59 | |
| 60 | def _get_lock(): |
| 61 | global _infer_lock |
| 62 | if _infer_lock is None: |
| 63 | import threading |
| 64 | _infer_lock = threading.Lock() |
| 65 | return _infer_lock |
| 66 | |
| 67 | |
| 68 | def _run_echomimic_subprocess(source_image: str, driving_audio: str, save_video_dir: str) -> Path | None: |