Update app.py
Browse files
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 =
|
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))
|