Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -103,9 +103,7 @@ def text2sql(dataset_name, query_input):
|
|
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
|
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")
|
@@ -120,7 +118,8 @@ with gr.Blocks() as demo:
|
|
120 |
gr.Examples(examples=examples, inputs=[query_input],outputs=[])
|
121 |
btn = gr.Button("Generate SQL")
|
122 |
with gr.Row():
|
123 |
-
with gr.
|
|
|
124 |
schema_output = gr.Textbox(label="Parquet Schema as CREATE DDL", interactive= False)
|
125 |
prompt_output = gr.Textbox(label="Generated prompt", interactive= False)
|
126 |
with gr.Column(scale=1, min_width=600):
|
|
|
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 Hugging Face Dataset 💫")
|
|
|
|
|
107 |
with gr.Row():
|
108 |
with gr.Column(scale=1, min_width=600):
|
109 |
dataset_name = gr.Textbox("jamescalam/world-cities-geo", label="Dataset Name")
|
|
|
118 |
gr.Examples(examples=examples, inputs=[query_input],outputs=[])
|
119 |
btn = gr.Button("Generate SQL")
|
120 |
with gr.Row():
|
121 |
+
with gr.Accordion("Open for More!", open=False):
|
122 |
+
#with gr.Column(scale=1, min_width=600):
|
123 |
schema_output = gr.Textbox(label="Parquet Schema as CREATE DDL", interactive= False)
|
124 |
prompt_output = gr.Textbox(label="Generated prompt", interactive= False)
|
125 |
with gr.Column(scale=1, min_width=600):
|