Omnibus commited on
Commit
64ca3f9
1 Parent(s): b1ea448

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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}'