viklofg commited on
Commit
1e17723
·
1 Parent(s): 6df9119

Make examples more compact

Browse files

This makes the first page fit on a small-ish laptop screen.
AB#1410

Files changed (1) hide show
  1. app/tabs/submit.py +4 -5
app/tabs/submit.py CHANGED
@@ -192,7 +192,7 @@ with gr.Blocks() as submit:
192
  with gr.Row(
193
  equal_height=True,
194
  ):
195
- with gr.Column(scale=5):
196
  batch_image_gallery = gr.Gallery(
197
  file_types=["image"],
198
  label="Image to transcribe",
@@ -200,7 +200,7 @@ with gr.Blocks() as submit:
200
  object_fit="scale-down",
201
  )
202
 
203
- with gr.Column(scale=3):
204
  examples = gr.Gallery(
205
  all_example_images(),
206
  label="Examples",
@@ -208,9 +208,8 @@ with gr.Blocks() as submit:
208
  allow_preview=False,
209
  object_fit="scale-down",
210
  min_width=250,
211
- columns=3,
212
- height="45vh",
213
- elem_classes="gallery-fix",
214
  )
215
  # with Modal(visible=False) as edit_pipeline_modal:
216
 
 
192
  with gr.Row(
193
  equal_height=True,
194
  ):
195
+ with gr.Column(scale=2):
196
  batch_image_gallery = gr.Gallery(
197
  file_types=["image"],
198
  label="Image to transcribe",
 
200
  object_fit="scale-down",
201
  )
202
 
203
+ with gr.Column(scale=1):
204
  examples = gr.Gallery(
205
  all_example_images(),
206
  label="Examples",
 
208
  allow_preview=False,
209
  object_fit="scale-down",
210
  min_width=250,
211
+ height="100%",
212
+ columns=4,
 
213
  )
214
  # with Modal(visible=False) as edit_pipeline_modal:
215