Downloads · 30 days
0
Orthodox-Union/shiur-review-whisper
shiur-review-whisper is a machine learning model from Orthodox-Union. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository is a Hugging Face Space that uses OpenAI Whisper to review shiur audio with:
Downloads · 30 days
0
Access
Public
Updated Apr 12, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py91.8 KB · 82%
From the Hugging Face model README
This repository is a Hugging Face Space that uses OpenAI Whisper to review shiur audio with:
The implementation is optimized for real shiur evaluation on GPU hardware. The expected baseline is a Hugging Face GPU Space running Whisper large-v3.
word_timestamps=Truewebrtcvadconfig/torah_glossary.yamllarge-v3turboWHISPER_MODEL: Whisper model name, defaults to large-v3DEVICE: auto, cuda, mps, or cpu; defaults to autoMAX_AUDIO_MINUTES: upload ceiling in minutes, defaults to 180OUTPUT_ROOT: local artifact root, defaults to outputs/ inside this repoPERSIST_OUTPUTS: if true and /data exists, write artifacts to /data/shiur-reviewCHECKPOINT_ROOT: optional long-run checkpoint directory; defaults to <output-root>/checkpointsMODEL_DIR: optional model cache directoryDEFAULT_GLOSSARY: optional newline-delimited glossary text applied to every runGLOSSARY_FILE: glossary file path, defaults to config/torah_glossary.yamlOUTLINE_EMBEDDING_MODEL: defaults to sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2WHISPER_LANGUAGE: optional language hint used for the first batch and then reusedWHISPER_TASK: defaults to transcribeWHISPER_BEAM_SIZE: defaults to 5WHISPER_BEST_OF: defaults to 5WHISPER_CONDITION_ON_PREVIOUS_TEXT: defaults to trueWHISPER_CARRY_INITIAL_PROMPT: defaults to falseWHISPER_TEMPERATURE_START: defaults to 0.0WHISPER_TEMPERATURE_INCREMENT: defaults to 0.2WHISPER_MAX_TEMPERATURE: defaults to 1.0VAD_ENABLED: defaults to trueVAD_AGGRESSIVENESS: defaults to 2VAD_FRAME_MS: defaults to 30VAD_PADDING_MS: defaults to 300VAD_MERGE_GAP_MS: defaults to 700VAD_MIN_SPEECH_MS: defaults to 400VAD_MAX_SEGMENT_SECONDS: defaults to 240BATCH_MAX_SPEECH_SECONDS: defaults to 900BATCH_MAX_SEGMENTS: defaults to 48RESUME_ENABLED: defaults to trueThe app no longer sends a long shiur as one opaque transcription request.
ffprobe.webrtcvad finds speech regions.large-v3.task=transcribe for mixed-language shiur audio.config/torah_glossary.yaml with real names, seforim, masechtos, and recurring transliterations from your corpus.large-v3 and turbo on the same clips only after you have a stable glossary and checkpointed batch flow.ffmpeg.requirements.txt.python app.py.Local runs now save artifacts under outputs/ in this repo by default.
On Apple Silicon, DEVICE=auto will prefer mps, which is a better local evaluation path than plain CPU. For real mixed-language accuracy bakeoffs, a dedicated Nvidia GPU is still the target reference environment.
CPU execution is only intended for smoke tests. Use a GPU runtime before judging quality on mixed English, Hebrew, Yiddish, or Aramaic clips.
Given the current Hugging Face billing block on paid GPUs, the practical setup is:
mpsIf you want an on-demand Nvidia environment without enabling Hugging Face paid GPU, use a temporary external GPU instance instead. The repo now includes a provider-agnostic workflow in docs/external-gpu.md plus helper scripts in scripts/verify_gpu_host.sh and scripts/run_gpu_container.sh.
If you run the private Hugging Face GPU Space through an API client, use scripts/run_space_transcription.py to copy the returned artifacts into outputs/remote-runs/ in this repo instead of leaving them in Gradio's temp cache.
The Docker image is designed for local Docker and external GPU runs and exposes port 7860. On Hugging Face, use /data for persistent server-side artifacts. Browser and Gradio client downloads still land on the client machine unless you copy them into the repo yourself.
large-v3 and turbo on the same representative shiur clips