Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,9 +76,12 @@ def star_fn(inp):
|
|
| 76 |
|
| 77 |
outp=Image.open(output[0])
|
| 78 |
outp.save(f"{uid}_pre_star.png")
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
| 82 |
print(f'outp_bg:: {outp_bg}')
|
| 83 |
width, height = outp_bg.size
|
| 84 |
rat = width/height
|
|
|
|
| 76 |
|
| 77 |
outp=Image.open(output[0])
|
| 78 |
outp.save(f"{uid}_pre_star.png")
|
| 79 |
+
|
| 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 |
+
outp_bg,_=bg1(f"{uid}_pre_star.png")
|
| 85 |
print(f'outp_bg:: {outp_bg}')
|
| 86 |
width, height = outp_bg.size
|
| 87 |
rat = width/height
|