Update app.py
Browse files
app.py
CHANGED
@@ -46,11 +46,11 @@ def dif_fn(inp):
|
|
46 |
outp = outp.resize((800,800*rat))
|
47 |
else:
|
48 |
outp = outp.resize((800,536))
|
49 |
-
|
50 |
-
|
51 |
out = os.path.abspath(outp)
|
52 |
out_url = f'https://omnibus-game-test.hf.space/file={out}'
|
53 |
-
return
|
54 |
|
55 |
with gr.Blocks() as app:
|
56 |
with gr.Row():
|
|
|
46 |
outp = outp.resize((800,800*rat))
|
47 |
else:
|
48 |
outp = outp.resize((800,536))
|
49 |
+
outp.save(f"{uid}_sky.png")
|
50 |
+
out = os.path.abspath(f"{uid}_sky.png")
|
51 |
out = os.path.abspath(outp)
|
52 |
out_url = f'https://omnibus-game-test.hf.space/file={out}'
|
53 |
+
return outp,out_url
|
54 |
|
55 |
with gr.Blocks() as app:
|
56 |
with gr.Row():
|