Spaces:
Running
Running
Upload gradio_app.py
Browse files- gradio_app.py +1 -2
gradio_app.py
CHANGED
@@ -7,7 +7,7 @@ import uuid
|
|
7 |
import torch
|
8 |
import shutil
|
9 |
|
10 |
-
OUTPUT_DIR = "output"
|
11 |
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
12 |
|
13 |
@spaces.GPU
|
@@ -22,7 +22,6 @@ def generate_and_process_3d(image: Image.Image) -> tuple[str | None, str | None]
|
|
22 |
image_path = "image.png"
|
23 |
image.save(image_path)
|
24 |
shutil.copy(image_path, output_path)
|
25 |
-
print(Path(output_path).resolve())
|
26 |
|
27 |
return output_path, public_url
|
28 |
|
|
|
7 |
import torch
|
8 |
import shutil
|
9 |
|
10 |
+
OUTPUT_DIR = "./output"
|
11 |
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
12 |
|
13 |
@spaces.GPU
|
|
|
22 |
image_path = "image.png"
|
23 |
image.save(image_path)
|
24 |
shutil.copy(image_path, output_path)
|
|
|
25 |
|
26 |
return output_path, public_url
|
27 |
|