asahi417 commited on
Commit
fad088c
1 Parent(s): 6ed841f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,11 +9,11 @@ model_depth = DepthAnythingV2("depth-anything/Depth-Anything-V2-Large-hf")
9
  title = ("# [Depth2Image](https://huggingface.co/stabilityai/stable-diffusion-2-depth) with [DepthAnythingV2](https://huggingface.co/depth-anything/Depth-Anything-V2-Large-hf)\n"
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(10):
13
  url = f"https://huggingface.co/spaces/depth-anything/Depth-Anything-V2/resolve/main/assets/examples/demo{n:0>2}.jpg"
14
  print(url)
15
- load_image(url).save(os.path.basename(url))
16
- example_files += [os.path.basename(url)]
17
 
18
 
19
  @spaces.GPU
 
9
  title = ("# [Depth2Image](https://huggingface.co/stabilityai/stable-diffusion-2-depth) with [DepthAnythingV2](https://huggingface.co/depth-anything/Depth-Anything-V2-Large-hf)\n"
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
  url = f"https://huggingface.co/spaces/depth-anything/Depth-Anything-V2/resolve/main/assets/examples/demo{n:0>2}.jpg"
14
  print(url)
15
+ load_image(url).save(f"demo{n:0>2}.jpg")
16
+
17
 
18
 
19
  @spaces.GPU