--- title: OMR Comparator Backend emoji: 🎼 colorFrom: yellow colorTo: gray sdk: gradio app_file: app.py suggested_hardware: cpu-basic --- # OMR Comparator Backend This is the public FastAPI gateway used by the OMR Bench v0 app. The Space uses the free Gradio SDK runner and starts the FastAPI gateway from `app.py`; no paid Docker hardware is required. ## Important The gateway does not contain the six model runtimes. It proxies requests to model services configured with environment variables: - `ROKOT_REMOTE_URL` - `LEGATO_REMOTE_URL` - `TRANSCODA_REMOTE_URL` - `SMT_REMOTE_URL` - `HOMR_REMOTE_URL` - `FLOVA_REMOTE_URL` Each remote service must accept a multipart upload at the configured URL and return either MusicXML text or JSON containing `musicxml`, `xml`, `music_xml`, or `result`. Optional upload field overrides: - `ROKOT_REMOTE_FIELD` - `LEGATO_REMOTE_FIELD` - `TRANSCODA_REMOTE_FIELD` - `SMT_REMOTE_FIELD` - `HOMR_REMOTE_FIELD` - `FLOVA_REMOTE_FIELD` They default to `image`. ## Health check Open `/` after deployment. It reports the six model IDs and how many remote adapters are configured. ## Local run ```bash pip install -r requirements.txt uvicorn omr_backend:app --host 0.0.0.0 --port 8000 ``` ## v0 Preview Use the public HTTPS Space URL in OMR Bench Settings, for example: `https://YOUR-SPACE-NAME.hf.space` Do not use `localhost` or `127.0.0.1` in v0 Preview.