rhea2809 commited on
Commit
2df203a
·
verified ·
1 Parent(s): c3910d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -114,6 +114,9 @@ padding: 0 !important;
114
  span.svelte-s1r2yt{font-weight: bold !important;
115
  }
116
  """
 
 
 
117
  with gr.Blocks(css=css) as demo:
118
  search_box = gr.Textbox( label='Search Name', placeholder='You can search for titles with regular expressions. e.g. (?<!sur)face',max_lines=1, scale = 5)
119
  filter_names = gr.CheckboxGroup(choices=["Responsible AI 101", "Responsible AI Governance", "AI System Risk and Assurance", "Generative and Agentic AI", "AI Regulation and Compliance", "AI Procurement"], value=["Responsible AI 101", "Responsible AI Governance", "AI System Risk and Assurance", "Generative and Agentic AI", "AI Regulation and Compliance", "AI Procurement"], label='Type')
 
114
  span.svelte-s1r2yt{font-weight: bold !important;
115
  }
116
  """
117
+ def toggle_filter(show_filter: bool):
118
+ return gr.update(visible=show_filter)
119
+
120
  with gr.Blocks(css=css) as demo:
121
  search_box = gr.Textbox( label='Search Name', placeholder='You can search for titles with regular expressions. e.g. (?<!sur)face',max_lines=1, scale = 5)
122
  filter_names = gr.CheckboxGroup(choices=["Responsible AI 101", "Responsible AI Governance", "AI System Risk and Assurance", "Generative and Agentic AI", "AI Regulation and Compliance", "AI Procurement"], value=["Responsible AI 101", "Responsible AI Governance", "AI System Risk and Assurance", "Generative and Agentic AI", "AI Regulation and Compliance", "AI Procurement"], label='Type')