Update app.py
Browse files
app.py
CHANGED
|
@@ -110,67 +110,66 @@ def toggle_filter(show_filter: bool):
|
|
| 110 |
with gr.Blocks(css=css, theme=gr.themes.Default(primary_hue="blue", secondary_hue="gray")) as demo:
|
| 111 |
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)
|
| 112 |
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')
|
| 113 |
-
filter_names2 = gr.CheckboxGroup(choices=['Deck','Document/Report','
|
| 114 |
with gr.Row():
|
| 115 |
show_filter_checkbox = gr.Checkbox(label="Filter on Hashtags", value=False)
|
| 116 |
filter_names3 = gr.CheckboxGroup(choices=[
|
| 117 |
-
"AIImpacts",
|
| 118 |
-
"AIAssessment&Audit",
|
| 119 |
-
"AIDesign",
|
| 120 |
-
"AIDevelopment",
|
| 121 |
-
"AIDeployment",
|
| 122 |
-
"AIMonitoring",
|
| 123 |
-
"AIOperating&Maintenance",
|
| 124 |
-
"AIDecommissioning",
|
| 125 |
-
"AITesting&Evaluation",
|
| 126 |
-
"AITraining",
|
| 127 |
-
"AIStandards",
|
| 128 |
-
"AIUseCase",
|
| 129 |
-
"Accountability&Transparency",
|
| 130 |
-
"CheatSheet",
|
| 131 |
-
"Checklist",
|
| 132 |
-
"CaseStudy",
|
| 133 |
-
"Cybersecurity",
|
| 134 |
-
"Data&AI",
|
| 135 |
-
"EUAIAct",
|
| 136 |
-
"EUGDPR",
|
| 137 |
-
"EmergingTopic",
|
| 138 |
-
"Explainability&Interpretability",
|
| 139 |
-
"FactSheet",
|
| 140 |
-
"Fairness&Bias",
|
| 141 |
-
"FederalRegulations",
|
| 142 |
-
"Frameworks",
|
| 143 |
-
"FrontierAI",
|
| 144 |
-
"ForAuditors",
|
| 145 |
-
"ForDevelopers",
|
| 146 |
-
"ForDeployers",
|
| 147 |
-
"ForLeadership",
|
| 148 |
-
"GlobalStandards",
|
| 149 |
-
"Glossary",
|
| 150 |
-
"Government&PublicSector",
|
| 151 |
-
"Guide",
|
| 152 |
-
"Healthcare",
|
| 153 |
-
"HR",
|
| 154 |
-
"ISO42001",
|
| 155 |
-
"Industrial",
|
| 156 |
-
"Manufacturing",
|
| 157 |
-
"Marketing",
|
| 158 |
-
"News&Journalism",
|
| 159 |
-
"Privacy",
|
| 160 |
-
"Report",
|
| 161 |
-
"Retail",
|
| 162 |
-
"Safety",
|
| 163 |
-
"Security&Resiliency",
|
| 164 |
-
"StateRegulations",
|
| 165 |
-
"Template",
|
| 166 |
-
"Toolkit",
|
| 167 |
-
"Training",
|
| 168 |
-
"Validity&Reliability",
|
| 169 |
-
"WhitePaper"
|
| 170 |
-
]
|
| 171 |
-
|
| 172 |
, value=[
|
| 173 |
-
], label='
|
| 174 |
show_filter_checkbox.change(toggle_filter, inputs=show_filter_checkbox, outputs=filter_names3)
|
| 175 |
search_button = gr.Button('Search', size = 'sm', scale =1)
|
| 176 |
table = gr.HTML(show_label=False)
|
|
|
|
| 110 |
with gr.Blocks(css=css, theme=gr.themes.Default(primary_hue="blue", secondary_hue="gray")) as demo:
|
| 111 |
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)
|
| 112 |
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')
|
| 113 |
+
filter_names2 = gr.CheckboxGroup(choices=['Deck','Document/Report','Infographic','Video/Audio','Repository/Directory',], value=['Deck','Document/Report','Infogrphic','Video/Audio','Repository/Directory',], label='Type (Format)')
|
| 114 |
with gr.Row():
|
| 115 |
show_filter_checkbox = gr.Checkbox(label="Filter on Hashtags", value=False)
|
| 116 |
filter_names3 = gr.CheckboxGroup(choices=[
|
| 117 |
+
"#AIImpacts",
|
| 118 |
+
"#AIAssessment&Audit",
|
| 119 |
+
"#AIDesign",
|
| 120 |
+
"#AIDevelopment",
|
| 121 |
+
"#AIDeployment",
|
| 122 |
+
"#AIMonitoring",
|
| 123 |
+
"#AIOperating&Maintenance",
|
| 124 |
+
"#AIDecommissioning",
|
| 125 |
+
"#AITesting&Evaluation",
|
| 126 |
+
"#AITraining",
|
| 127 |
+
"#AIStandards",
|
| 128 |
+
"#AIUseCase",
|
| 129 |
+
"#Accountability&Transparency",
|
| 130 |
+
"#CheatSheet",
|
| 131 |
+
"#Checklist",
|
| 132 |
+
"#CaseStudy",
|
| 133 |
+
"#Cybersecurity",
|
| 134 |
+
"#Data&AI",
|
| 135 |
+
"#EUAIAct",
|
| 136 |
+
"#EUGDPR",
|
| 137 |
+
"#EmergingTopic",
|
| 138 |
+
"#Explainability&Interpretability",
|
| 139 |
+
"#FactSheet",
|
| 140 |
+
"#Fairness&Bias",
|
| 141 |
+
"#FederalRegulations",
|
| 142 |
+
"#Frameworks",
|
| 143 |
+
"#FrontierAI",
|
| 144 |
+
"#ForAuditors",
|
| 145 |
+
"#ForDevelopers",
|
| 146 |
+
"#ForDeployers",
|
| 147 |
+
"#ForLeadership",
|
| 148 |
+
"#GlobalStandards",
|
| 149 |
+
"#Glossary",
|
| 150 |
+
"#Government&PublicSector",
|
| 151 |
+
"#Guide",
|
| 152 |
+
"#Healthcare",
|
| 153 |
+
"#HR",
|
| 154 |
+
"#ISO42001",
|
| 155 |
+
"#Industrial",
|
| 156 |
+
"#Manufacturing",
|
| 157 |
+
"#Marketing",
|
| 158 |
+
"#News&Journalism",
|
| 159 |
+
"#Privacy",
|
| 160 |
+
"#Report",
|
| 161 |
+
"#Retail",
|
| 162 |
+
"#Safety",
|
| 163 |
+
"#Security&Resiliency",
|
| 164 |
+
"#StateRegulations",
|
| 165 |
+
"#Template",
|
| 166 |
+
"#Toolkit",
|
| 167 |
+
"#Training",
|
| 168 |
+
"#Validity&Reliability",
|
| 169 |
+
"#WhitePaper"
|
| 170 |
+
]
|
|
|
|
| 171 |
, value=[
|
| 172 |
+
], label='Hide the hashtags filter and hit search to se full list again.', visible=False)
|
| 173 |
show_filter_checkbox.change(toggle_filter, inputs=show_filter_checkbox, outputs=filter_names3)
|
| 174 |
search_button = gr.Button('Search', size = 'sm', scale =1)
|
| 175 |
table = gr.HTML(show_label=False)
|