Update app.py
Browse files
app.py
CHANGED
@@ -94,17 +94,11 @@ span.svelte-s1r2yt{font-weight: bold !important;
|
|
94 |
}
|
95 |
"""
|
96 |
with gr.Blocks(css=css) as demo:
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
with gr.Column(scale=1):
|
103 |
-
filter_names2 = gr.CheckboxGroup(choices=['NIST AI RMF MAP','NIST AI RMF MEASURE','NIST AI RMF MANAGE','NIST AI RMF GOVERN','ISO/IEC 42001 4','ISO/IEC 42001 5','ISO/IEC 42001 6','ISO/IEC 42001 7','ISO/IEC 42001 8','ISO/IEC 42001 9','ISO/IEC 42001 10',], value=['NIST AI RMF MAP','NIST AI RMF MEASURE','NIST AI RMF MANAGE','NIST AI RMF GOVERN','ISO/IEC 42001 4','ISO/IEC 42001 5','ISO/IEC 42001 6','ISO/IEC 42001 7','ISO/IEC 42001 8','ISO/IEC 42001 9','ISO/IEC 42001 10',], label='Alignment with Key Guidance')
|
104 |
-
with gr.Row():
|
105 |
-
search_button = gr.Button('Search', size = 'sm', scale =1)
|
106 |
-
with gr.Row():
|
107 |
-
table = gr.HTML(show_label=False)
|
108 |
|
109 |
demo.load(fn=data_list.render, inputs=[search_box, filter_names,filter_names2,], outputs=[table,])
|
110 |
search_button.click(fn=data_list.render, inputs=[search_box, filter_names,filter_names2,], outputs=[table,])
|
|
|
94 |
}
|
95 |
"""
|
96 |
with gr.Blocks(css=css) as demo:
|
97 |
+
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)
|
98 |
+
filter_names = gr.CheckboxGroup(choices=["Compliance and Regulatory Guidance", "Generative AI", "Suppliers and Procurement", "Policy and Governance", "Assessing AI Systems",], value=['Compliance and Regulatory Guidance', 'Generative AI', 'Suppliers and Procurement', 'Policy and Governance', 'Assessing AI Systems',], label='Type')
|
99 |
+
filter_names2 = gr.CheckboxGroup(choices=['NIST AI RMF MAP','NIST AI RMF MEASURE','NIST AI RMF MANAGE','NIST AI RMF GOVERN','ISO/IEC 42001 4','ISO/IEC 42001 5','ISO/IEC 42001 6','ISO/IEC 42001 7','ISO/IEC 42001 8','ISO/IEC 42001 9','ISO/IEC 42001 10',], value=['NIST AI RMF MAP','NIST AI RMF MEASURE','NIST AI RMF MANAGE','NIST AI RMF GOVERN','ISO/IEC 42001 4','ISO/IEC 42001 5','ISO/IEC 42001 6','ISO/IEC 42001 7','ISO/IEC 42001 8','ISO/IEC 42001 9','ISO/IEC 42001 10',], label='Alignment with Key Guidance')
|
100 |
+
search_button = gr.Button('Search', size = 'sm', scale =1)
|
101 |
+
table = gr.HTML(show_label=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
demo.load(fn=data_list.render, inputs=[search_box, filter_names,filter_names2,], outputs=[table,])
|
104 |
search_button.click(fn=data_list.render, inputs=[search_box, filter_names,filter_names2,], outputs=[table,])
|