md896 commited on
Commit
d00292e
·
1 Parent(s): e6d1a8f

Add GitHub repo link; drop Karpathy, blog, slides, demo placeholders.

Browse files

Links to https://github.com/mdayan8/sql-debug-env in demo header, footer, engineering notes, and Gradio first-context + references.

Made-with: Cursor

Files changed (2) hide show
  1. server/demo_page.html +4 -4
  2. server/gradio_ui.py +3 -6
server/demo_page.html CHANGED
@@ -753,6 +753,7 @@
753
  </div>
754
  <div class="space-actions">
755
  <a class="btn-primary" href="/gradio/">Gradio UI</a>
 
756
  <button type="button" class="btn-ghost" id="btnOpenTab" title="Opens this demo in a full browser tab">Open full page</button>
757
  <a class="btn-ghost" href="https://huggingface.co/spaces/md896/sql-debug-env" target="_blank" rel="noopener">Space on Hub ↗</a>
758
  </div>
@@ -1027,12 +1028,9 @@ J(pi) = E_{tau ~ pi}[sum_{t=0..T} gamma^t * R_t]</code>
1027
  execution-grounded learning loop.
1028
  </p>
1029
  <div class="link-list" style="margin-top:12px">
 
1030
  <a href="https://cloud.google.com/blog/products/databases/techniques-for-improving-text-to-sql" target="_blank" rel="noopener">Google Cloud: techniques for improving text-to-SQL</a>
1031
  <a href="https://arxiv.org/abs/2601.18119" target="_blank" rel="noopener">OurBench / Squirrel: enterprise SQL debugging benchmark</a>
1032
- <a href="https://karpathy.github.io/2014/09/02/what-i-learned-from-competing-against-a-convnet-on-imagenet/" target="_blank" rel="noopener">Writing inspiration: Karpathy field-notes style</a>
1033
- <a href="#" target="_blank" rel="noopener">Final public blog URL (replace)</a>
1034
- <a href="#" target="_blank" rel="noopener">Slides (URL)</a>
1035
- <a href="#" target="_blank" rel="noopener">Demo video (URL)</a>
1036
  </div>
1037
  </div>
1038
  </div>
@@ -1043,6 +1041,8 @@ J(pi) = E_{tau ~ pi}[sum_{t=0..T} gamma^t * R_t]</code>
1043
  <div class="space-footer-inner">
1044
  <span>Custom Space UI · FastAPI <code style="font-family:var(--font-mono);font-size:0.75em">/demo</code></span>
1045
  <span>
 
 
1046
  <a href="https://huggingface.co/docs/hub/spaces" target="_blank" rel="noopener">Spaces docs</a>
1047
  ·
1048
  <a href="https://huggingface.co/spaces/md896/sql-debug-env/tree/main" target="_blank" rel="noopener">Files &amp; versions</a>
 
753
  </div>
754
  <div class="space-actions">
755
  <a class="btn-primary" href="/gradio/">Gradio UI</a>
756
+ <a class="btn-ghost" href="https://github.com/mdayan8/sql-debug-env" target="_blank" rel="noopener">GitHub</a>
757
  <button type="button" class="btn-ghost" id="btnOpenTab" title="Opens this demo in a full browser tab">Open full page</button>
758
  <a class="btn-ghost" href="https://huggingface.co/spaces/md896/sql-debug-env" target="_blank" rel="noopener">Space on Hub ↗</a>
759
  </div>
 
1028
  execution-grounded learning loop.
1029
  </p>
1030
  <div class="link-list" style="margin-top:12px">
1031
+ <a href="https://github.com/mdayan8/sql-debug-env" target="_blank" rel="noopener">GitHub — mdayan8/sql-debug-env</a>
1032
  <a href="https://cloud.google.com/blog/products/databases/techniques-for-improving-text-to-sql" target="_blank" rel="noopener">Google Cloud: techniques for improving text-to-SQL</a>
1033
  <a href="https://arxiv.org/abs/2601.18119" target="_blank" rel="noopener">OurBench / Squirrel: enterprise SQL debugging benchmark</a>
 
 
 
 
1034
  </div>
1035
  </div>
1036
  </div>
 
1041
  <div class="space-footer-inner">
1042
  <span>Custom Space UI · FastAPI <code style="font-family:var(--font-mono);font-size:0.75em">/demo</code></span>
1043
  <span>
1044
+ <a href="https://github.com/mdayan8/sql-debug-env" target="_blank" rel="noopener">GitHub</a>
1045
+ ·
1046
  <a href="https://huggingface.co/docs/hub/spaces" target="_blank" rel="noopener">Spaces docs</a>
1047
  ·
1048
  <a href="https://huggingface.co/spaces/md896/sql-debug-env/tree/main" target="_blank" rel="noopener">Files &amp; versions</a>
server/gradio_ui.py CHANGED
@@ -31,10 +31,10 @@ HF_EVAL_32 = (
31
  "artifacts/runs/20260426-060502-final-pass-32eval"
32
  )
33
  HF_MODEL = "https://huggingface.co/md896/sql-debug-agent-qwen25-05b-grpo-wandb-continue-v2"
 
34
  WANDB_TRAINING_RUN = "https://wandb.ai/mdayanbag-pesitm/sql-debug-grpo-best-budget/workspace?nw=nwusermdayanbag"
35
  GCLOUD_TEXT2SQL_BLOG = "https://cloud.google.com/blog/products/databases/techniques-for-improving-text-to-sql"
36
  OURBENCH_PAPER = "https://arxiv.org/abs/2601.18119"
37
- KARPATHY_STYLE_REFERENCE = "https://karpathy.github.io/2014/09/02/what-i-learned-from-competing-against-a-convnet-on-imagenet/"
38
 
39
  PREDEFINED_QUERIES: dict[str, list[tuple[str, str]]] = {
40
  "easy_syntax_fix": [
@@ -441,7 +441,7 @@ def build_blocks(static_dir: Path) -> Any:
441
 
442
  gr.Markdown(
443
  "### First context: training proof first\n"
444
- f"- **Field-notes writing style reference:** [Karpathy post]({KARPATHY_STYLE_REFERENCE})\n"
445
  f"- **First training notebook (auto-install cell):** [Open in Colab]({COLAB_FIRST_TRAINING})\n"
446
  f"- **Full training Colab (root anchor):** [Open in Colab]({COLAB_TRAINING_ROOT})\n"
447
  f"- **Weights & Biases (project workspace):** [Open dashboard]({WANDB_TRAINING_RUN})\n"
@@ -744,10 +744,7 @@ def build_blocks(static_dir: Path) -> Any:
744
  gr.Markdown(
745
  f"- [Google Cloud: techniques for improving text-to-SQL]({GCLOUD_TEXT2SQL_BLOG})\n"
746
  f"- [OurBench / Squirrel: enterprise SQL debugging benchmark]({OURBENCH_PAPER})\n"
747
- f"- [Writing inspiration: Karpathy field-notes style]({KARPATHY_STYLE_REFERENCE})\n"
748
- "- [Final public blog URL (replace)](#)\n"
749
- "- [Slides (URL)](#)\n"
750
- "- [Demo video (URL)](#)"
751
  )
752
 
753
  return demo
 
31
  "artifacts/runs/20260426-060502-final-pass-32eval"
32
  )
33
  HF_MODEL = "https://huggingface.co/md896/sql-debug-agent-qwen25-05b-grpo-wandb-continue-v2"
34
+ GITHUB_REPO = "https://github.com/mdayan8/sql-debug-env"
35
  WANDB_TRAINING_RUN = "https://wandb.ai/mdayanbag-pesitm/sql-debug-grpo-best-budget/workspace?nw=nwusermdayanbag"
36
  GCLOUD_TEXT2SQL_BLOG = "https://cloud.google.com/blog/products/databases/techniques-for-improving-text-to-sql"
37
  OURBENCH_PAPER = "https://arxiv.org/abs/2601.18119"
 
38
 
39
  PREDEFINED_QUERIES: dict[str, list[tuple[str, str]]] = {
40
  "easy_syntax_fix": [
 
441
 
442
  gr.Markdown(
443
  "### First context: training proof first\n"
444
+ f"- **Source code:** [GitHub — mdayan8/sql-debug-env]({GITHUB_REPO})\n"
445
  f"- **First training notebook (auto-install cell):** [Open in Colab]({COLAB_FIRST_TRAINING})\n"
446
  f"- **Full training Colab (root anchor):** [Open in Colab]({COLAB_TRAINING_ROOT})\n"
447
  f"- **Weights & Biases (project workspace):** [Open dashboard]({WANDB_TRAINING_RUN})\n"
 
744
  gr.Markdown(
745
  f"- [Google Cloud: techniques for improving text-to-SQL]({GCLOUD_TEXT2SQL_BLOG})\n"
746
  f"- [OurBench / Squirrel: enterprise SQL debugging benchmark]({OURBENCH_PAPER})\n"
747
+ f"- [GitHub repository]({GITHUB_REPO})"
 
 
 
748
  )
749
 
750
  return demo