Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -92,13 +92,19 @@ span.svelte-s1r2yt{font-weight: bold !important;
|
|
92 |
}
|
93 |
"""
|
94 |
with gr.Blocks(css=css) as demo:
|
95 |
-
|
96 |
-
|
97 |
search_button = gr.Button('Search', size = 'sm')
|
|
|
|
|
|
|
|
|
|
|
98 |
table = gr.HTML(show_label=False)
|
99 |
-
|
100 |
-
|
101 |
-
|
|
|
102 |
|
103 |
demo.queue()
|
104 |
demo.launch(share=False)
|
|
|
92 |
}
|
93 |
"""
|
94 |
with gr.Blocks(css=css) as demo:
|
95 |
+
with gr.Row():
|
96 |
+
search_box = gr.Textbox( label='Search Name', placeholder='You can search for titles with regular expressions. e.g. (?<!sur)face',max_lines=1)
|
97 |
search_button = gr.Button('Search', size = 'sm')
|
98 |
+
|
99 |
+
with gr.Row():
|
100 |
+
filter_names = gr.CheckboxGroup(choices=['Guidebook','Assessment Tool','Training and Education',], value=['Guidebook','Assessment Tool','Training and Education',], label='Type')
|
101 |
+
|
102 |
+
with gr.Row():
|
103 |
table = gr.HTML(show_label=False)
|
104 |
+
|
105 |
+
demo.load(fn=data_list.render, inputs=[search_box, filter_names,],outputs=[table,])
|
106 |
+
search_box.submit(fn=data_list.render, inputs=[search_box, filter_names,], outputs=[table,])
|
107 |
+
search_button.click(fn=data_list.render, inputs=[search_box, filter_names,], outputs=[table,])
|
108 |
|
109 |
demo.queue()
|
110 |
demo.launch(share=False)
|