Spaces:
Sleeping
Sleeping
File size: 1,075 Bytes
88ff622 ac775e0 b7c4d3b ac775e0 88ff622 ac775e0 88ff622 ac775e0 | 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 29 30 31 32 33 34 35 36 37 38 39 40 41 | ---
title: BCQL Validator
emoji: 🔎
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: "6.13.0"
app_file: app.py
pinned: false
license: apache-2.0
short_description: Validate BlackLab Corpus Query Language queries.
---
# BCQL Validator (Gradio demo)
A small Gradio app that demonstrates [`bcql_py`](https://github.com/BramVanroy/bcql_py):
parse a BCQL query, validate it against a built-in or custom `CorpusSpec`, and
inspect the resulting AST.
The hosted demo lives at
[huggingface.co/spaces/BramVanroy/bcql_py_validation](https://huggingface.co/spaces/BramVanroy/bcql_py_validation).
## Run locally
From the repository root:
```sh
uv sync --group app
uv run python app/app.py
```
Then open the URL printed in the terminal (default
[http://localhost:7860](http://localhost:7860)).
## Files
- [`app.py`](app.py) - Gradio Blocks app and validation logic.
- [`requirements.txt`](requirements.txt) - Pinned dependencies used by Hugging
Face Spaces. Local development should use `uv sync --group app` instead so
that the in-repo source of `bcql_py` is used.
|