zdxpan commited on
Commit
e0b54a6
β€’
1 Parent(s): 57ec94a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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}")