text2sql-demo / README.md
minimew's picture
Upload README.md with huggingface_hub
f03eb32 verified
|
Raw
History Blame Contribute Delete
682 Bytes
---
title: Text to SQL Demo
emoji: πŸ”
colorFrom: blue
colorTo: indigo
sdk: docker
pinned: false
---
# Text-to-SQL Demo
Fine-tuned T5-base / CodeT5-base / BART-base on WikiSQL β†’ Spider β†’ BIRD (curriculum learning).
**12 checkpoints** across 4 training stages Γ— 3 architectures β€” selectable via dropdown.
## Setup (if self-hosting)
```bash
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
uvicorn src.app.api:app --host 0.0.0.0 --port 8000
```
Then open `http://localhost:8000`.
## HF Space secrets
If the model repos are private, add `HF_TOKEN` as a Space secret
(Settings β†’ Variables and secrets β†’ New secret).