Omnibus commited on
Commit
0f2503c
·
1 Parent(s): 389cf08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -82,8 +82,10 @@ def star_fn(inp):
82
  #print(out_pre_url)
83
 
84
  outp_bg=bg1(out_pre_url)
 
 
85
  print(f'outp_bg:: {outp_bg}')
86
- width, height = outp_bg.size
87
  rat = width/height
88
  if width > height:
89
  outp = outp.resize((600*rat,600))
 
82
  #print(out_pre_url)
83
 
84
  outp_bg=bg1(out_pre_url)
85
+
86
+ bg_im=Image.open(outp_bg)
87
  print(f'outp_bg:: {outp_bg}')
88
+ width, height = bg_im.size
89
  rat = width/height
90
  if width > height:
91
  outp = outp.resize((600*rat,600))