Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -172,6 +172,8 @@ def generate(logo=None, Vtubername=""):
|
|
172 |
def resize_caption_to_logo(logo, caption):
|
173 |
logo_width = logo.width
|
174 |
target_caption_width = int(logo_width)
|
|
|
|
|
175 |
|
176 |
if caption.width > target_caption_width:
|
177 |
aspect_ratio = caption.height / caption.width
|
|
|
172 |
def resize_caption_to_logo(logo, caption):
|
173 |
logo_width = logo.width
|
174 |
target_caption_width = int(logo_width)
|
175 |
+
logo_height = logo.height
|
176 |
+
target_caption_width = int(logo_height)
|
177 |
|
178 |
if caption.width > target_caption_width:
|
179 |
aspect_ratio = caption.height / caption.width
|