MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / _get_lock

Function _get_lock

script/echomimic_api.py:60–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59
60def _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
68def _run_echomimic_subprocess(source_image: str, driving_audio: str, save_video_dir: str) -> Path | None:

Callers 1

inferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected