Update app.py
Browse files
app.py
CHANGED
@@ -80,12 +80,12 @@ def star_fn(inp):
|
|
80 |
#out = os.path.abspath(f"{uid}_pre_star.png")
|
81 |
#out_pre_url = f'https://omnibus-game-test.hf.space/file={out}'
|
82 |
#print(out_pre_url)
|
|
|
83 |
|
84 |
-
|
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}'
|
|
|
80 |
#out = os.path.abspath(f"{uid}_pre_star.png")
|
81 |
#out_pre_url = f'https://omnibus-game-test.hf.space/file={out}'
|
82 |
#print(out_pre_url)
|
83 |
+
outp = outp.resize((24,24))
|
84 |
|
85 |
+
outp=bg.rem_bg(outp)
|
86 |
|
87 |
+
#bg_im=Image.open(outp_bg)
|
88 |
+
#print(f'outp_bg:: {outp_bg}')
|
|
|
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}'
|