Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ class DataList:
|
|
| 63 |
|
| 64 |
@staticmethod
|
| 65 |
def filter_table(df: pd.DataFrame, filter_names: list[str], filter_names2: list[str], filter_name3: list[str],) -> pd.DataFrame:
|
| 66 |
-
df = df.loc[df.
|
| 67 |
print(filter_name3)
|
| 68 |
vals= filter_names3
|
| 69 |
df = df.loc[df.Module.isin(vals)]
|
|
@@ -107,7 +107,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 107 |
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)
|
| 108 |
with gr.Row():
|
| 109 |
with gr.Column(scale=1):
|
| 110 |
-
filter_names = gr.CheckboxGroup(choices=['
|
| 111 |
with gr.Column(scale=1):
|
| 112 |
filter_names2 = gr.CheckboxGroup(choices=['NIST AI RMF MAP','NIST AI RMF GOVERN','ISO 42001 A.8',], value=['NIST AI RMF MAP','NIST AI RMF GOVERN','ISO 42001 A.8',], label='Alignment with Key Guidance')
|
| 113 |
with gr.Row():
|
|
|
|
| 63 |
|
| 64 |
@staticmethod
|
| 65 |
def filter_table(df: pd.DataFrame, filter_names: list[str], filter_names2: list[str], filter_name3: list[str],) -> pd.DataFrame:
|
| 66 |
+
df = df.loc[df.Module.isin(set(filter_names))]
|
| 67 |
print(filter_name3)
|
| 68 |
vals= filter_names3
|
| 69 |
df = df.loc[df.Module.isin(vals)]
|
|
|
|
| 107 |
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)
|
| 108 |
with gr.Row():
|
| 109 |
with gr.Column(scale=1):
|
| 110 |
+
filter_names = gr.CheckboxGroup(choices=['Compliance and Regulatory Guidance','Generative AI','Training and Education',], value=['Guidebook','Assessment Tool','Training and Education',], label='Type')
|
| 111 |
with gr.Column(scale=1):
|
| 112 |
filter_names2 = gr.CheckboxGroup(choices=['NIST AI RMF MAP','NIST AI RMF GOVERN','ISO 42001 A.8',], value=['NIST AI RMF MAP','NIST AI RMF GOVERN','ISO 42001 A.8',], label='Alignment with Key Guidance')
|
| 113 |
with gr.Row():
|