LeonceNsh commited on
Commit
cf2c742
·
verified ·
1 Parent(s): c349158

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,7 +109,7 @@ with gr.Blocks() as demo:
109
 
110
  gr.Markdown("### Click on an example query:")
111
  with gr.Row():
112
- btn_example1 = gr.Button("Retrieve the top 15 records by award. Return all columns except sub_tier, type, countrycode, and popstreetaddress.")
113
  btn_example2 = gr.Button("List all contracts in New York")
114
  btn_example3 = gr.Button("Show top 5 departments by award amount")
115
  btn_example4 = gr.Button("Execute: SELECT * from contract_data LIMIT 10;")
@@ -166,7 +166,7 @@ with gr.Blocks() as demo:
166
  )
167
 
168
  btn_example1.click(
169
- fn=lambda: handle_example_click("Show awards over 1M in CA"),
170
  outputs=[sql_query_out, error_out, results_out, error_out]
171
  )
172
  btn_example2.click(
 
109
 
110
  gr.Markdown("### Click on an example query:")
111
  with gr.Row():
112
+ 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")
113
  btn_example2 = gr.Button("List all contracts in New York")
114
  btn_example3 = gr.Button("Show top 5 departments by award amount")
115
  btn_example4 = gr.Button("Execute: SELECT * from contract_data LIMIT 10;")
 
166
  )
167
 
168
  btn_example1.click(
169
+ fn=lambda: handle_example_click("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"),
170
  outputs=[sql_query_out, error_out, results_out, error_out]
171
  )
172
  btn_example2.click(