Leyo commited on
Commit
1ce5a2b
1 Parent(s): 8e82e65

increase min font + Idefics in image gallery name

Browse files
Files changed (1) hide show
  1. app_dialogue.py +4 -4
app_dialogue.py CHANGED
@@ -449,10 +449,10 @@ def make_meme_image(
449
  height_width_ratio = image_height / image_width
450
 
451
  draw = ImageDraw.Draw(image)
452
- min_font = 30
453
  initial_font_size = 60
454
- if height_width_ratio > 1:
455
- min_font = 40
456
  initial_font_size = 80
457
  text_is_too_long = True
458
  num_lines = 0
@@ -712,7 +712,7 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
712
  with gr.Column(scale=2):
713
  generated_memes_gallery = gr.Gallery(
714
  # value="Images generated will appear here",
715
- label="Generated Memes",
716
  allow_preview=True,
717
  elem_id="generated_memes_gallery",
718
  show_download_button=True,
 
449
  height_width_ratio = image_height / image_width
450
 
451
  draw = ImageDraw.Draw(image)
452
+ min_font = 35
453
  initial_font_size = 60
454
+ if height_width_ratio >= 1:
455
+ min_font = 45
456
  initial_font_size = 80
457
  text_is_too_long = True
458
  num_lines = 0
 
712
  with gr.Column(scale=2):
713
  generated_memes_gallery = gr.Gallery(
714
  # value="Images generated will appear here",
715
+ label="IDEFICS Generated Memes",
716
  allow_preview=True,
717
  elem_id="generated_memes_gallery",
718
  show_download_button=True,