Spaces:
Sleeping
Sleeping
Melika Kheirieh
commited on
Commit
·
c4c85f7
1
Parent(s):
1c9c65e
demo(ui): align POST payload with API schema; robust 422 handling; map (sql,rationale,traces) to UI
Browse files- demo/app.py +1 -2
demo/app.py
CHANGED
|
@@ -149,8 +149,7 @@ with gr.Blocks(title="NL2SQL Copilot") as demo:
|
|
| 149 |
|
| 150 |
with gr.Tab("Repair"):
|
| 151 |
repair_candidates = gr.JSON(label="Candidates")
|
| 152 |
-
repair_diff = gr.
|
| 153 |
-
|
| 154 |
with gr.Tab("Timings"):
|
| 155 |
timings = gr.Dataframe(headers=["metric", "ms"], datatype=["str", "number"])
|
| 156 |
|
|
|
|
| 149 |
|
| 150 |
with gr.Tab("Repair"):
|
| 151 |
repair_candidates = gr.JSON(label="Candidates")
|
| 152 |
+
repair_diff = gr.Textbox(label="Diff (if any)", lines=10)
|
|
|
|
| 153 |
with gr.Tab("Timings"):
|
| 154 |
timings = gr.Dataframe(headers=["metric", "ms"], datatype=["str", "number"])
|
| 155 |
|