rhea2809 commited on
Commit
fdf0953
·
verified ·
1 Parent(s): 2368ec2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
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
- search_box = gr.Textbox( label='Search Name', placeholder='You can search for titles with regular expressions. e.g. (?<!sur)face',max_lines=1)
96
- filter_names = gr.CheckboxGroup(choices=['Guidebook','Assessment Tool','Training and Education',], value=['Guidebook','Assessment Tool','Training and Education',], label='Type')
97
  search_button = gr.Button('Search', size = 'sm')
 
 
 
 
 
98
  table = gr.HTML(show_label=False)
99
- demo.load(fn=data_list.render, inputs=[search_box, filter_names,],outputs=[table,])
100
- search_box.submit(fn=data_list.render, inputs=[search_box, filter_names,], outputs=[table,])
101
- search_button.click(fn=data_list.render, inputs=[search_box, filter_names,], outputs=[table,])
 
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)