Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,8 @@ def execute_sql_query(sql_query):
|
|
69 |
with gr.Blocks() as demo:
|
70 |
gr.Markdown("""
|
71 |
# Text to SQL healthcare AI data Analyst agent to analyze U.S prescription data from the Center of Medicare and Medicaid
|
72 |
-
|
|
|
73 |
|
74 |
## Instructions
|
75 |
|
@@ -86,7 +87,7 @@ with gr.Blocks() as demo:
|
|
86 |
gr.Markdown("### Click on an example query:")
|
87 |
with gr.Row():
|
88 |
btn_example1 = gr.Button("Calculate the average total_charges, total_cases, and total_days_of_care for each zip_cd_of_residence")
|
89 |
-
btn_example2 = gr.Button("For each zip_cd_of_residence, calculate the average total_charges per total_case
|
90 |
btn_example3 = gr.Button("Execute: SELECT * from hsa_data where total_days_of_care > 40 LIMIT 30;")
|
91 |
|
92 |
query_input = gr.Textbox(
|
@@ -151,7 +152,7 @@ with gr.Blocks() as demo:
|
|
151 |
outputs=[sql_query_out, error_out, results_out, error_out]
|
152 |
)
|
153 |
btn_example2.click(
|
154 |
-
fn=lambda: handle_example_click("For each zip_cd_of_residence, calculate the average total_charges per total_case
|
155 |
outputs=[sql_query_out, error_out, results_out, error_out]
|
156 |
)
|
157 |
btn_example3.click(
|
|
|
69 |
with gr.Blocks() as demo:
|
70 |
gr.Markdown("""
|
71 |
# Text to SQL healthcare AI data Analyst agent to analyze U.S prescription data from the Center of Medicare and Medicaid
|
72 |
+
|
73 |
+
# Replicate papers from academic journals on prescription drug prices
|
74 |
|
75 |
## Instructions
|
76 |
|
|
|
87 |
gr.Markdown("### Click on an example query:")
|
88 |
with gr.Row():
|
89 |
btn_example1 = gr.Button("Calculate the average total_charges, total_cases, and total_days_of_care for each zip_cd_of_residence")
|
90 |
+
btn_example2 = gr.Button("For each zip_cd_of_residence, calculate the average total_charges per total_case")
|
91 |
btn_example3 = gr.Button("Execute: SELECT * from hsa_data where total_days_of_care > 40 LIMIT 30;")
|
92 |
|
93 |
query_input = gr.Textbox(
|
|
|
152 |
outputs=[sql_query_out, error_out, results_out, error_out]
|
153 |
)
|
154 |
btn_example2.click(
|
155 |
+
fn=lambda: handle_example_click("For each zip_cd_of_residence, calculate the average total_charges per total_case"),
|
156 |
outputs=[sql_query_out, error_out, results_out, error_out]
|
157 |
)
|
158 |
btn_example3.click(
|