Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.22.0
Architecture Summary
BridgeLink ASL is organized around a simple perception-to-output loop:
camera.pyprovides frames from a webcam or a synthetic fallback source.landmarks.pyconverts each frame into a landmark vector boundary.classifier.pypredicts the most likely sign from that vector.smoothing.pystabilizes predictions across consecutive frames.translation.pymaps stable labels into readable text.speech.pyspeaks the translated text with a selected provider.pipeline.pyorchestrates the full loop and writes transcript events.
Next Architecture: Sentence Mode
Sentence mode now has two model branches so the team can compare CNN against VLM:
camera frames
-> sentence window builder
-> sampled keyframes
-> CNN baseline OR VLM interpreter
-> comparable model result
-> transcript and speech output
The CNN branch receives fixed-length sampled frame stacks and predicts one of the supported sentence/gloss classes. The VLM branch receives sampled frames, and optionally the current word-token trace, then outputs a natural English sentence. Both branches use the same clip manifest so the comparison is fair.
Why This Shape
- It keeps the demo working before the real model is trained.
- It makes the later MediaPipe and TensorFlow Lite swaps isolated rather than invasive.
- It supports offline testing by replacing camera and TTS dependencies with deterministic fallbacks.
Phase-to-Code Mapping
- Phase 1: current scaffold, built-in seed classifier, mock landmarks, mock TTS
- Phase 2: collect sentence-window metadata and train the sampled-frame CNN baseline
- Phase 3: add a mock/local VLM sentence interpreter and comparison wrapper
- Phase 4: harden the live and backup demo paths