Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WER Summary API (FastAPI)

Serves one WER leaderboard per language from data/<language>.json.

Route Returns
GET / Languages that have data, and their endpoints
GET /wer-summary Same index as /
GET /wer-summary/{language} Leaderboard: status, month, year, language, data
GET /wer-summary/{language}/details Same plus per-file WER rows, warnings, engine failures

Unknown language → 404 listing the available ones.

Breaking change from v1.0: /wer-summary used to return the Punjabi leaderboard directly. It now returns the index; Punjabi moved to /wer-summary/punjabi.

Adding a language

Generate the JSON with the headless runner, which writes straight into data/:

cd d:\test-apis-srt\wer-automation\app
python run_models.py --dir "D:\path\to\hindi-clips" --language Hindi

Then commit data/hindi.json and deploy — it is picked up automatically, no code change needed.

Setup

cd d:\test-apis-srt\wer-summary-api
python -m pip install -r requirements.txt

Run

uvicorn app:app --host 127.0.0.1 --port 8000

Or python app.py.

Deploy (Fly.io)

fly.toml sets app = "wer-summary-api" — confirm that matches the existing app first, or a second one gets created:

fly apps list
fly deploy

Dockerfile copies data/, so the leaderboards ship inside the image.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages