IncreasingLoss commited on
Commit
444e7de
·
verified ·
1 Parent(s): 6e81c87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -552,6 +552,11 @@ css = """
552
  max-height: none !important;
553
  height: auto !important;
554
  }
 
 
 
 
 
555
  """
556
 
557
  """gradio app"""
@@ -578,6 +583,7 @@ with gr.Blocks(css=css, title="DeepTranslate: Chinese OCR") as program:
578
  gallery = gr.Gallery(value=example_images,
579
  label="Example Images (Click to Select)",
580
  columns=6,
 
581
  allow_preview=False,
582
  elem_id="my_media_gallery",
583
  elem_classes=["centered-examples"])
 
552
  max-height: none !important;
553
  height: auto !important;
554
  }
555
+
556
+ #my_media_gallery * {
557
+ min-height: 0 !important;
558
+ }
559
+
560
  """
561
 
562
  """gradio app"""
 
583
  gallery = gr.Gallery(value=example_images,
584
  label="Example Images (Click to Select)",
585
  columns=6,
586
+ height = "auto",
587
  allow_preview=False,
588
  elem_id="my_media_gallery",
589
  elem_classes=["centered-examples"])