Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def text_to_image(prompt):
|
|
21 |
|
22 |
def create_cereal_box(input_image):
|
23 |
cover_img = Image.fromarray(input_image.astype('uint8'), 'RGB')
|
24 |
-
template_img = Image.open('/
|
25 |
scaling_factor = 1.5
|
26 |
rect_height = int(template_img.height * 0.32)
|
27 |
new_width = int(rect_height * 0.70)
|
|
|
21 |
|
22 |
def create_cereal_box(input_image):
|
23 |
cover_img = Image.fromarray(input_image.astype('uint8'), 'RGB')
|
24 |
+
template_img = Image.open('CerealBoxMaker/template.jpeg')
|
25 |
scaling_factor = 1.5
|
26 |
rect_height = int(template_img.height * 0.32)
|
27 |
new_width = int(rect_height * 0.70)
|