Update app.py
Browse files
app.py
CHANGED
@@ -73,11 +73,11 @@ def star_fn(inp):
|
|
73 |
print(output)
|
74 |
#output=dif(inp)
|
75 |
#in_url=f'https://omnibus-fast-diff.hf.space/file={output[0]}'
|
76 |
-
|
77 |
print(output_bg)
|
78 |
-
outp=Image.open(
|
79 |
-
|
80 |
-
width, height =
|
81 |
rat = width/height
|
82 |
if width > height:
|
83 |
outp = outp.resize((600*rat,600))
|
|
|
73 |
print(output)
|
74 |
#output=dif(inp)
|
75 |
#in_url=f'https://omnibus-fast-diff.hf.space/file={output[0]}'
|
76 |
+
|
77 |
print(output_bg)
|
78 |
+
outp=Image.open(output[0])
|
79 |
+
outp_bg=bg1(outp)
|
80 |
+
width, height = outp_bg.size
|
81 |
rat = width/height
|
82 |
if width > height:
|
83 |
outp = outp.resize((600*rat,600))
|