FridaKahlosArtCenter commited on
Commit
ce9973a
1 Parent(s): 12b36b7

final commit

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -13,13 +13,13 @@ print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
13
 
14
 
15
  def image_to_template(generated_image, logo, button_text, punchline, theme_color):
16
- template_width = 1080
17
- button_font_size = 20
18
- punchline_font_size = 60
19
- decoration_height = 20
20
- margin = 40
21
  # wrap punchline text
22
- punchline = textwrap.wrap(punchline, width=35)
23
  n_of_lines_punchline = len(punchline)
24
 
25
  generated_image = generated_image.convert("RGBA")
 
13
 
14
 
15
  def image_to_template(generated_image, logo, button_text, punchline, theme_color):
16
+ template_width = 540
17
+ button_font_size = 10
18
+ punchline_font_size = 30
19
+ decoration_height = 10
20
+ margin = 20
21
  # wrap punchline text
22
+ punchline = textwrap.wrap(punchline, width=30)
23
  n_of_lines_punchline = len(punchline)
24
 
25
  generated_image = generated_image.convert("RGBA")