minimew commited on
Commit
f03eb32
Β·
verified Β·
1 Parent(s): c410269

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +24 -5
README.md CHANGED
@@ -1,10 +1,29 @@
1
  ---
2
- title: Text2sql Demo
3
- emoji: 🌍
4
- colorFrom: gray
5
- colorTo: purple
6
  sdk: docker
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Text to SQL Demo
3
+ emoji: πŸ”
4
+ colorFrom: blue
5
+ colorTo: indigo
6
  sdk: docker
7
  pinned: false
8
  ---
9
 
10
+ # Text-to-SQL Demo
11
+
12
+ Fine-tuned T5-base / CodeT5-base / BART-base on WikiSQL β†’ Spider β†’ BIRD (curriculum learning).
13
+
14
+ **12 checkpoints** across 4 training stages Γ— 3 architectures β€” selectable via dropdown.
15
+
16
+ ## Setup (if self-hosting)
17
+
18
+ ```bash
19
+ pip install torch --index-url https://download.pytorch.org/whl/cpu
20
+ pip install -r requirements.txt
21
+ uvicorn src.app.api:app --host 0.0.0.0 --port 8000
22
+ ```
23
+
24
+ Then open `http://localhost:8000`.
25
+
26
+ ## HF Space secrets
27
+
28
+ If the model repos are private, add `HF_TOKEN` as a Space secret
29
+ (Settings β†’ Variables and secrets β†’ New secret).