LeonceNsh commited on
Commit
8d55455
Β·
verified Β·
1 Parent(s): 590f6d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -14
app.py CHANGED
@@ -91,7 +91,23 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
91
  """)
92
 
93
  with gr.Row():
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  with gr.Column(scale=1, min_width=350):
 
95
  gr.Markdown("### πŸ” Enter Your Query")
96
  query_input = gr.Textbox(
97
  label="",
@@ -105,20 +121,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
105
  btn_execute_query = gr.Button("πŸš€ Execute Query", variant="secondary")
106
  error_out = gr.Markdown("", visible=False, elem_id="error_message")
107
 
108
- gr.Markdown("### πŸ’‘ Example Queries")
109
- with gr.Column():
110
- example_queries = [
111
- "Show the top 10 departments by total award amount.",
112
- "List contracts where the award amount exceeds $5,000,000.",
113
- "Retrieve awards over $1M in California.",
114
- "Find the top 5 awardees by number of contracts.",
115
- "Display contracts awarded after 2020 in New York.",
116
- "What is the total award amount by state?"
117
- ]
118
- example_buttons = []
119
- for i, query in enumerate(example_queries):
120
- btn = gr.Button(query, variant="link", size="sm", interactive=True)
121
- example_buttons.append(btn)
122
 
123
  with gr.Accordion("πŸ“„ Dataset Schema", open=False):
124
  gr.JSON(get_schema(), label="Schema")
 
91
  """)
92
 
93
  with gr.Row():
94
+ gr.Markdown("### πŸ’‘ Example Queries")
95
+ with gr.Column():
96
+ example_queries = [
97
+ "Show the top 10 departments by total award amount.",
98
+ "List contracts where the award amount exceeds $5,000,000.",
99
+ "Retrieve awards over $1M in California.",
100
+ "Find the top 5 awardees by number of contracts.",
101
+ "Display contracts awarded after 2020 in New York.",
102
+ "What is the total award amount by state?"
103
+ ]
104
+ example_buttons = []
105
+ for i, query in enumerate(example_queries):
106
+ btn = gr.Button(query, variant="link", size="sm", interactive=True)
107
+ example_buttons.append(btn)
108
+
109
  with gr.Column(scale=1, min_width=350):
110
+
111
  gr.Markdown("### πŸ” Enter Your Query")
112
  query_input = gr.Textbox(
113
  label="",
 
121
  btn_execute_query = gr.Button("πŸš€ Execute Query", variant="secondary")
122
  error_out = gr.Markdown("", visible=False, elem_id="error_message")
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
 
125
  with gr.Accordion("πŸ“„ Dataset Schema", open=False):
126
  gr.JSON(get_schema(), label="Schema")