Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def sky_fn(inp):
|
|
44 |
in_url=f'https://omnibus-fast-diff.hf.space/file={output}'
|
45 |
#output=dif(inp)
|
46 |
print(output)
|
47 |
-
outp=Image.open(in_url)
|
48 |
width, height = outp.size
|
49 |
rat = width/height
|
50 |
if width > height:
|
@@ -72,7 +72,7 @@ def star_fn(inp):
|
|
72 |
in_url=f'https://omnibus-fast-diff.hf.space/file={output}'
|
73 |
|
74 |
print(output)
|
75 |
-
outp=Image.open(in_url)
|
76 |
width, height = outp.size
|
77 |
rat = width/height
|
78 |
if width > height:
|
|
|
44 |
in_url=f'https://omnibus-fast-diff.hf.space/file={output}'
|
45 |
#output=dif(inp)
|
46 |
print(output)
|
47 |
+
outp=Image.open(in_url[0])
|
48 |
width, height = outp.size
|
49 |
rat = width/height
|
50 |
if width > height:
|
|
|
72 |
in_url=f'https://omnibus-fast-diff.hf.space/file={output}'
|
73 |
|
74 |
print(output)
|
75 |
+
outp=Image.open(in_url[0])
|
76 |
width, height = outp.size
|
77 |
rat = width/height
|
78 |
if width > height:
|