Update app.py
Browse files
app.py
CHANGED
@@ -32,11 +32,11 @@ def dif_fn(inp):
|
|
32 |
width, height = outp.size
|
33 |
rat = width/height
|
34 |
if width > height:
|
35 |
-
outp = outp.resize(600*rat,600)
|
36 |
elif width < height:
|
37 |
-
outp = outp.resize(800,800*rat)
|
38 |
else:
|
39 |
-
outp = outp.resize(800,800)
|
40 |
outp.save("tmp_sky.png")
|
41 |
out = os.path.abspath("tmp_sky.png")
|
42 |
out_url = f'https://omnibus-game-test.hf.space/file={out}'
|
|
|
32 |
width, height = outp.size
|
33 |
rat = width/height
|
34 |
if width > height:
|
35 |
+
outp = outp.resize((600*rat,600))
|
36 |
elif width < height:
|
37 |
+
outp = outp.resize((800,800*rat))
|
38 |
else:
|
39 |
+
outp = outp.resize((800,800))
|
40 |
outp.save("tmp_sky.png")
|
41 |
out = os.path.abspath("tmp_sky.png")
|
42 |
out_url = f'https://omnibus-game-test.hf.space/file={out}'
|