LeonceNsh commited on
Commit
8f0d9b6
·
verified ·
1 Parent(s): 5b88b44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -103,7 +103,7 @@ with gr.Blocks() as demo:
103
  gr.Markdown("### Click on an example query:")
104
  with gr.Row():
105
  btn_example1 = gr.Button("Retrieve the top 15 records from contract_data where basetype is Award Notice, awardee has at least 12 characters, and popcity has more than 5 characters. Exclude the fields sub_tier, popzip, awardnumber, basetype, popstate, active, popcountry, type, countrycode, and popstreetaddress")
106
- btn_example2 = gr.Button("Show top 5 departments by award amount")
107
  btn_example3 = gr.Button("Execute: SELECT * from contract_data LIMIT 10;")
108
 
109
  query_input = gr.Textbox(
@@ -168,7 +168,7 @@ with gr.Blocks() as demo:
168
  outputs=[sql_query_out, error_out, results_out, error_out]
169
  )
170
  btn_example2.click(
171
- fn=lambda: handle_example_click("Show top 5 departments by award amount. Round to zero decimal places."),
172
  outputs=[sql_query_out, error_out, results_out, error_out]
173
  )
174
  btn_example3.click(
 
103
  gr.Markdown("### Click on an example query:")
104
  with gr.Row():
105
  btn_example1 = gr.Button("Retrieve the top 15 records from contract_data where basetype is Award Notice, awardee has at least 12 characters, and popcity has more than 5 characters. Exclude the fields sub_tier, popzip, awardnumber, basetype, popstate, active, popcountry, type, countrycode, and popstreetaddress")
106
+ btn_example2 = gr.Button("Show top 10 departments by award amount")
107
  btn_example3 = gr.Button("Execute: SELECT * from contract_data LIMIT 10;")
108
 
109
  query_input = gr.Textbox(
 
168
  outputs=[sql_query_out, error_out, results_out, error_out]
169
  )
170
  btn_example2.click(
171
+ fn=lambda: handle_example_click("Show top 10 departments by award amount. Round to zero decimal places."),
172
  outputs=[sql_query_out, error_out, results_out, error_out]
173
  )
174
  btn_example3.click(