asoria HF staff commited on
Commit
8201d79
·
verified ·
1 Parent(s): cb7593c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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.Markdown("# Generate SQL queries based on a given text for your dataset")
106
- gr.Markdown("This space showcase how to generate a SQL query from a text and get the result.")
107
- gr.Markdown("Tech stack: duckdb and DuckDB-NSQL-7B model")
 
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():