Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -102,9 +102,10 @@ def text2sql(dataset_name, query_input):
|
|
102 |
|
103 |
with gr.Blocks() as demo:
|
104 |
with gr.Row():
|
105 |
-
gr.
|
106 |
-
|
107 |
-
|
|
|
108 |
with gr.Row():
|
109 |
with gr.Column(scale=1, min_width=600):
|
110 |
dataset_name = gr.Textbox("jamescalam/world-cities-geo", label="Dataset Name")
|
@@ -115,6 +116,7 @@ with gr.Blocks() as demo:
|
|
115 |
["Cities that start with 'A'"],
|
116 |
["Cities by region"],
|
117 |
]
|
|
|
118 |
gr.Examples(examples=examples, inputs=[query_input],outputs=[])
|
119 |
btn = gr.Button("Generate SQL")
|
120 |
with gr.Row():
|
|
|
102 |
|
103 |
with gr.Blocks() as demo:
|
104 |
with gr.Row():
|
105 |
+
with gr.Column(scale=1, min_width=600):
|
106 |
+
gr.Markdown("# Generate SQL queries based on a given text for your dataset")
|
107 |
+
gr.Markdown("This space showcase how to generate a SQL query from a text and get the result.")
|
108 |
+
gr.Markdown("Tech stack: duckdb and DuckDB-NSQL-7B model")
|
109 |
with gr.Row():
|
110 |
with gr.Column(scale=1, min_width=600):
|
111 |
dataset_name = gr.Textbox("jamescalam/world-cities-geo", label="Dataset Name")
|
|
|
116 |
["Cities that start with 'A'"],
|
117 |
["Cities by region"],
|
118 |
]
|
119 |
+
with gr.Column(scale=1, min_width=600):
|
120 |
gr.Examples(examples=examples, inputs=[query_input],outputs=[])
|
121 |
btn = gr.Button("Generate SQL")
|
122 |
with gr.Row():
|