Spaces:
Runtime error
Runtime error
fix images issue
Browse files
storyDiffusion/images/logo.png
ADDED
storyDiffusion/images/pad_images.png
ADDED
storyDiffusion/utils/utils.py
CHANGED
@@ -86,9 +86,9 @@ def add_caption(image, text, position = "bottom-mid", font = None, text_color=
|
|
86 |
|
87 |
def get_comic(images,types = "4panel",captions = [],font = None,pad_image = None):
|
88 |
if pad_image == None:
|
89 |
-
pad_image = Image.open("./images/pad_images.png")
|
90 |
if font == None:
|
91 |
-
font = ImageFont.truetype("./fonts/Inkfree.ttf", int(30 * images[0].size[1] / 1024))
|
92 |
if types == "No typesetting (default)":
|
93 |
return images
|
94 |
elif types == "Four Pannel":
|
|
|
86 |
|
87 |
def get_comic(images,types = "4panel",captions = [],font = None,pad_image = None):
|
88 |
if pad_image == None:
|
89 |
+
pad_image = Image.open("./storyDiffusion/images/pad_images.png")
|
90 |
if font == None:
|
91 |
+
font = ImageFont.truetype("./storyDiffusion/fonts/Inkfree.ttf", int(30 * images[0].size[1] / 1024))
|
92 |
if types == "No typesetting (default)":
|
93 |
return images
|
94 |
elif types == "Four Pannel":
|