FridaKahlosArtCenter
commited on
Commit
•
ce9973a
1
Parent(s):
12b36b7
final commit
Browse files
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 =
|
17 |
-
button_font_size =
|
18 |
-
punchline_font_size =
|
19 |
-
decoration_height =
|
20 |
-
margin =
|
21 |
# wrap punchline text
|
22 |
-
punchline = textwrap.wrap(punchline, width=
|
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")
|