Sign2Voice / scripts /test_asl_brick.py
lilblueyes's picture
Expose stepwise ASL debug pipeline
c6c2ad9
Raw
History Blame Contribute Delete
859 Bytes
from __future__ import annotations
import argparse
import json
import bootstrap # noqa: F401
from signspeak.pipeline import run_asl_video
def main() -> None:
parser = argparse.ArgumentParser(description="Run only the ASL video brick.")
parser.add_argument("video", nargs="?", default=None, help="Video path. Creates a demo clip if omitted.")
parser.add_argument("--gloss-override", default=None, help="Manual glosses to use when the ASL model is missing.")
args = parser.parse_args()
intent_json, result, summary, debug_video_path = run_asl_video(args.video, args.gloss_override)
print(summary)
print(f"\nDebug overlay: {debug_video_path}")
print("\nIntent JSON:")
print(intent_json)
print("\nFull ASL output:")
print(json.dumps(result, indent=2, ensure_ascii=False))
if __name__ == "__main__":
main()