Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2487,13 +2487,10 @@ css = """
|
|
| 2487 |
|
| 2488 |
|
| 2489 |
|
|
|
|
|
|
|
| 2490 |
|
| 2491 |
# 🧠 Chatbot backend
|
| 2492 |
-
def highlight_vw_owners():
|
| 2493 |
-
return gr.Button.update(variant="primary"), gr.Button.update(variant="secondary")
|
| 2494 |
-
|
| 2495 |
-
def highlight_vw_prospects():
|
| 2496 |
-
return gr.Button.update(variant="secondary"), gr.Button.update(variant="primary")
|
| 2497 |
|
| 2498 |
|
| 2499 |
|
|
@@ -2614,9 +2611,6 @@ with gr.Blocks(css=css, js=js_func) as demo:
|
|
| 2614 |
inputs=[vw_prospects_state],
|
| 2615 |
outputs= outputs,
|
| 2616 |
)
|
| 2617 |
-
vw_customers_btn.click(fn=highlight_vw_owners, inputs=[], outputs=[vw_customers_btn, vw_prospects_btn])
|
| 2618 |
-
vw_prospects_btn.click(fn=highlight_vw_prospects, inputs=[], outputs=[vw_customers_btn, vw_prospects_btn])
|
| 2619 |
-
|
| 2620 |
def set_vw_owners():
|
| 2621 |
return "VW Owners.xlsx"
|
| 2622 |
|
|
|
|
| 2487 |
|
| 2488 |
|
| 2489 |
|
| 2490 |
+
def highlight_button(button_name):
|
| 2491 |
+
return gr.Button.update(variant="primary")
|
| 2492 |
|
| 2493 |
# 🧠 Chatbot backend
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2494 |
|
| 2495 |
|
| 2496 |
|
|
|
|
| 2611 |
inputs=[vw_prospects_state],
|
| 2612 |
outputs= outputs,
|
| 2613 |
)
|
|
|
|
|
|
|
|
|
|
| 2614 |
def set_vw_owners():
|
| 2615 |
return "VW Owners.xlsx"
|
| 2616 |
|