Spaces:
Build error
Build error
File size: 859 Bytes
879a21c c6c2ad9 879a21c c6c2ad9 879a21c c6c2ad9 879a21c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 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()
|