Wajahat698 commited on
Commit
b09dacc
·
verified ·
1 Parent(s): 1bfb0e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -1967,11 +1967,22 @@ function refresh() {
1967
  }
1968
  }
1969
  """
 
 
 
 
 
 
 
 
 
 
1970
 
 
1971
  def highlight_button(button_name):
1972
  return gr.Button.update(variant="primary") # Highlight the clicked button
1973
 
1974
- with gr.Blocks(js=js_func) as demo:
1975
  with gr.Column():
1976
  gr.Markdown(
1977
  "<span style='font-size:20px; font-weight:bold;'>Click 'Volkswagen Owners' or 'Volkswagen Prospects' to see the full results and play with the TrustifierAI.</span>",
@@ -1988,7 +1999,7 @@ with gr.Blocks(js=js_func) as demo:
1988
  with gr.Row():
1989
 
1990
  # Define buttons with specific elem_id for targeting
1991
- vw_customers_btn = gr.Button("VW Owners")
1992
  vw_prospects_btn = gr.Button("VW Prospects")
1993
 
1994
 
 
1967
  }
1968
  }
1969
  """
1970
+ css = """
1971
+ #vw_customers_btn {
1972
+ color: white;
1973
+ font-family: "Comic Sans MS", "Comic Sans", cursive !important;
1974
+ background-color: lightblue; /* Default background color */
1975
+ border: 2px solid gray;
1976
+ font-weight: bold;
1977
+ padding: 10px 20px;
1978
+ transition: background-color 0.3s ease, box-shadow 0.3s ease;
1979
+ }
1980
 
1981
+ """
1982
  def highlight_button(button_name):
1983
  return gr.Button.update(variant="primary") # Highlight the clicked button
1984
 
1985
+ with gr.Blocks(css=css,js=js_func) as demo:
1986
  with gr.Column():
1987
  gr.Markdown(
1988
  "<span style='font-size:20px; font-weight:bold;'>Click 'Volkswagen Owners' or 'Volkswagen Prospects' to see the full results and play with the TrustifierAI.</span>",
 
1999
  with gr.Row():
2000
 
2001
  # Define buttons with specific elem_id for targeting
2002
+ vw_customers_btn = gr.Button("VW Owners",elem_id="vw_customers_btn")
2003
  vw_prospects_btn = gr.Button("VW Prospects")
2004
 
2005