bradley6597 commited on
Commit
524a364
1 Parent(s): 1e63095

Formatting

Browse files
Files changed (1) hide show
  1. app.py +13 -9
app.py CHANGED
@@ -276,15 +276,19 @@ with gr.Blocks(css=style, js = logging_js) as app:
276
  gr.HTML(ill_check_html)
277
  user_num = gr.Number(value = 0, label = 'Put lowest number of the alarm clock you can see')
278
  with gr.Row():
279
- search_prompt = gr.Textbox(placeholder = 'search for an illustration', label = 'Search', elem_id = 'search_term')
280
- title_search = gr.Checkbox(label = 'Search title only')
281
- # with gr.Row():
282
- shared_drive = gr.Dropdown(choices = ['Illustrations - 01-10 to 07-22', 'Illustrations - Now', 'Shutter Stock Images', 'Beyond - Illustrations', 'DO NOT USE IN GENERAL RESOURCES - South Africa', 'Australia - Rhino Readers Illustrations', 'Aus and Nz - Phonics Illustrations', 'Twinkl Art Gallery'], multiselect = True, label = 'Shared Drive', value = ['Illustrations - 01-10 to 07-22', 'Illustrations - Now'])
283
- key_stage = gr.Dropdown(choices = ['EYFS', 'KS1', 'KS2', 'KS3'], multiselect = True, label = 'Key Stage', value = ['EYFS', 'KS1', 'KS2', 'KS3'])
284
- image_type = gr.Dropdown(choices = ['JPEG', 'PNG', 'TIF'], multiselect = True, label = 'Image Type', value = ['PNG', 'JPEG', 'TIF'])
285
-
286
- sort_by = gr.Dropdown(choices = ['Relevance', 'Date Created', 'A-Z'], value = 'Relevance', multiselect = False, label = 'Sort By')
287
- max_return = gr.Dropdown(choices = ['10', '25', '50', '75', '100', '250', '500', '1000', '5000', '10000', 'All'], value = '50', multiselect = False, label = 'No. of Results to Return (Total: 0)')
 
 
 
 
288
  with gr.Row():
289
  search_button = gr.Button(value="Search!", interactive = True)
290
  with gr.Row():
 
276
  gr.HTML(ill_check_html)
277
  user_num = gr.Number(value = 0, label = 'Put lowest number of the alarm clock you can see')
278
  with gr.Row():
279
+ with gr.Column(min_width = 0):
280
+ search_prompt = gr.Textbox(placeholder = 'search for an illustration', label = 'Search', elem_id = 'search_term')
281
+ exclude_prompt = gr.Textbox(placeholder = 'exclude words here', label = 'Exlcude words (Separate by comma)', elem_id = 'search_term')
282
+ title_search = gr.Checkbox(label = 'Search title only')
283
+ with gr.Column(min_width = 0):
284
+ shared_drive = gr.Dropdown(choices = ['Illustrations - 01-10 to 07-22', 'Illustrations - Now', 'Shutter Stock Images', 'Beyond - Illustrations', 'DO NOT USE IN GENERAL RESOURCES - South Africa', 'Australia - Rhino Readers Illustrations', 'Aus and Nz - Phonics Illustrations', 'Twinkl Art Gallery'], multiselect = True, label = 'Shared Drive', value = ['Illustrations - 01-10 to 07-22', 'Illustrations - Now'])
285
+ with gr.Column(min_width = 0):
286
+ key_stage = gr.Dropdown(choices = ['EYFS', 'KS1', 'KS2', 'KS3'], multiselect = True, label = 'Key Stage', value = ['EYFS', 'KS1', 'KS2', 'KS3'])
287
+ with gr.Column(min_width = 0):
288
+ image_type = gr.Dropdown(choices = ['JPEG', 'PNG', 'TIF'], multiselect = True, label = 'Image Type', value = ['PNG', 'JPEG', 'TIF'])
289
+ with gr.Column(min_width = 0):
290
+ sort_by = gr.Dropdown(choices = ['Relevance', 'Date Created', 'A-Z'], value = 'Relevance', multiselect = False, label = 'Sort By')
291
+ max_return = gr.Dropdown(choices = ['10', '25', '50', '75', '100', '250', '500', '1000', '5000', '10000', 'All'], value = '50', multiselect = False, label = 'No. of Results to Return (Total: 0)')
292
  with gr.Row():
293
  search_button = gr.Button(value="Search!", interactive = True)
294
  with gr.Row():