Omnibus commited on
Commit
2e06a7e
1 Parent(s): f7d474c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -85,14 +85,7 @@ def star_fn(inp):
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))
92
- elif width < height:
93
- outp = outp.resize((800,800*rat))
94
- else:
95
- outp = outp.resize((24,24))
96
  outp.save(f"{uid}_star.png")
97
  out = os.path.abspath(f"{uid}_star.png")
98
  out_url = f'https://omnibus-game-test.hf.space/file={out}'
 
85
 
86
  bg_im=Image.open(outp_bg)
87
  print(f'outp_bg:: {outp_bg}')
88
+ outp = bg_im.resize((24,24))
 
 
 
 
 
 
 
89
  outp.save(f"{uid}_star.png")
90
  out = os.path.abspath(f"{uid}_star.png")
91
  out_url = f'https://omnibus-game-test.hf.space/file={out}'