Update app.py
Browse files
app.py
CHANGED
@@ -109,10 +109,11 @@ def generate_image(bac_img, title,a,b,c,d,e,f, #-- ε½εζζ¬θ‘ε
εζ°ε―
|
|
109 |
bac_img = "./kaobianBottem.jpeg"
|
110 |
bing_post = "bingpost/"
|
111 |
spacing = 20
|
112 |
-
imgs_ = os.listdir(bing_post)
|
113 |
-
imgs_ = [i for i in imgs_ if i.endswith("png")]
|
114 |
-
ch_img = random.choice(imgs_)
|
115 |
-
front_img = os.path.join(bing_post, ch_img)
|
|
|
116 |
postcard=myPost(front_img=front_img, img = bac_img)
|
117 |
width, height = postcard.get_width_height()
|
118 |
print(f"width, height :{width} {height}")
|
|
|
109 |
bac_img = "./kaobianBottem.jpeg"
|
110 |
bing_post = "bingpost/"
|
111 |
spacing = 20
|
112 |
+
# imgs_ = os.listdir(bing_post)
|
113 |
+
# imgs_ = [i for i in imgs_ if i.endswith("png")]
|
114 |
+
# ch_img = random.choice(imgs_)
|
115 |
+
# front_img = os.path.join(bing_post, ch_img)
|
116 |
+
front_img = None
|
117 |
postcard=myPost(front_img=front_img, img = bac_img)
|
118 |
width, height = postcard.get_width_height()
|
119 |
print(f"width, height :{width} {height}")
|