Update app.py
Browse files
app.py
CHANGED
|
@@ -73,11 +73,11 @@ def star_fn(inp):
|
|
| 73 |
print(output)
|
| 74 |
outp=Image.open(output[0])
|
| 75 |
#outp.save(f"{uid}_star.png")
|
| 76 |
-
|
| 77 |
print("removing background")
|
| 78 |
-
|
| 79 |
print("resizing")
|
| 80 |
-
|
| 81 |
#outbg.save(f"{uid}_star.png")
|
| 82 |
#out = os.path.abspath(f"{uid}_star.png")
|
| 83 |
#out_url = f'https://omnibus-game-test.hf.space/file={out}'
|
|
|
|
| 73 |
print(output)
|
| 74 |
outp=Image.open(output[0])
|
| 75 |
#outp.save(f"{uid}_star.png")
|
| 76 |
+
outrs = outp.resize((24,24))
|
| 77 |
print("removing background")
|
| 78 |
+
out=rm(outrs)
|
| 79 |
print("resizing")
|
| 80 |
+
|
| 81 |
#outbg.save(f"{uid}_star.png")
|
| 82 |
#out = os.path.abspath(f"{uid}_star.png")
|
| 83 |
#out_url = f'https://omnibus-game-test.hf.space/file={out}'
|