Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def load_example():
|
|
| 31 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 32 |
gr.Markdown(
|
| 33 |
"""
|
| 34 |
-
#
|
| 35 |
This application converts **natural language questions** into **SQL queries**
|
| 36 |
using a fine-tuned **Qwen2.5-0.5B** language model.
|
| 37 |
"""
|
|
@@ -81,10 +81,20 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 81 |
**Example Question:**
|
| 82 |
*How many heads of the departments are older than 56?*
|
| 83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
**Expected SQL Output:**
|
| 85 |
```sql
|
| 86 |
SELECT count(*) FROM head WHERE age > 56;
|
| 87 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
"""
|
| 89 |
)
|
| 90 |
|
|
|
|
| 31 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 32 |
gr.Markdown(
|
| 33 |
"""
|
| 34 |
+
# Melih Emin Kılıçoğlu Text-to-SQL Demo
|
| 35 |
This application converts **natural language questions** into **SQL queries**
|
| 36 |
using a fine-tuned **Qwen2.5-0.5B** language model.
|
| 37 |
"""
|
|
|
|
| 81 |
**Example Question:**
|
| 82 |
*How many heads of the departments are older than 56?*
|
| 83 |
|
| 84 |
+
OR
|
| 85 |
+
|
| 86 |
+
*Tüm öğrencileri listele
|
| 87 |
+
|
| 88 |
**Expected SQL Output:**
|
| 89 |
```sql
|
| 90 |
SELECT count(*) FROM head WHERE age > 56;
|
| 91 |
```
|
| 92 |
+
|
| 93 |
+
OR
|
| 94 |
+
|
| 95 |
+
```sql
|
| 96 |
+
SELECT students from student;
|
| 97 |
+
```
|
| 98 |
"""
|
| 99 |
)
|
| 100 |
|