Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -10,10 +10,8 @@ title = ("# [Depth2Image](https://huggingface.co/stabilityai/stable-diffusion-2-
|
|
| 10 |
"Depth2Image with depth map predicted by DepthAnything V2. The demo is part of [panna](https://github.com/abacws-abacus/panna) project.")
|
| 11 |
example_files = []
|
| 12 |
for n in range(1, 10):
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
load_image(url).save(f"demo{n:0>2}.jpg")
|
| 16 |
-
|
| 17 |
|
| 18 |
|
| 19 |
@spaces.GPU
|
|
|
|
| 10 |
"Depth2Image with depth map predicted by DepthAnything V2. The demo is part of [panna](https://github.com/abacws-abacus/panna) project.")
|
| 11 |
example_files = []
|
| 12 |
for n in range(1, 10):
|
| 13 |
+
load_image(f"https://huggingface.co/spaces/depth-anything/Depth-Anything-V2/resolve/main/assets/examples/demo{n:0>2}.jpg").save(f"demo{n:0>2}.jpg")
|
| 14 |
+
example_files.append(f"demo{n:0>2}.jpg")
|
|
|
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
@spaces.GPU
|