Spaces:
Build error
Build error
FridaKahlosArtCenter
commited on
Commit
·
12b36b7
1
Parent(s):
4004d5e
doubled image and template size
Browse files
app.py
CHANGED
|
@@ -13,11 +13,11 @@ 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=35)
|
| 23 |
n_of_lines_punchline = len(punchline)
|
|
|
|
| 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)
|