Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,8 +33,6 @@ SQL RULES:
|
|
| 33 |
- Never use SELECT * — always name the columns you need.
|
| 34 |
- Age filters: use a numeric comparison on the age column directly (e.g. age > 50).
|
| 35 |
- Counts: use COUNT(*) or COUNT(column). Alias it clearly, e.g. AS num_patients.
|
| 36 |
-
- INSERT, UPDATE, DELETE, CREATE, DROP, ALTER are all allowed — the user owns their database.
|
| 37 |
-
- Identifier quoting: always wrap table and column names in double quotes if they start with a digit or contain special characters (e.g. "2b_concept", "my-column").
|
| 38 |
...
|
| 39 |
FEW-SHOT EXAMPLES:
|
| 40 |
|
|
@@ -141,7 +139,7 @@ demo = gr.Interface(
|
|
| 141 |
inputs=[
|
| 142 |
gr.Textbox(
|
| 143 |
label="Question",
|
| 144 |
-
placeholder="Show me how many patients above 50 have asthma",
|
| 145 |
),
|
| 146 |
gr.Textbox(
|
| 147 |
label="Schema DDL",
|
|
|
|
| 33 |
- Never use SELECT * — always name the columns you need.
|
| 34 |
- Age filters: use a numeric comparison on the age column directly (e.g. age > 50).
|
| 35 |
- Counts: use COUNT(*) or COUNT(column). Alias it clearly, e.g. AS num_patients.
|
|
|
|
|
|
|
| 36 |
...
|
| 37 |
FEW-SHOT EXAMPLES:
|
| 38 |
|
|
|
|
| 139 |
inputs=[
|
| 140 |
gr.Textbox(
|
| 141 |
label="Question",
|
| 142 |
+
placeholder="Show me how many patients aged above 50 have asthma",
|
| 143 |
),
|
| 144 |
gr.Textbox(
|
| 145 |
label="Schema DDL",
|