hysts HF Staff commited on
Commit
7a98e98
·
1 Parent(s): b1ed4fe
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ model = DepthProForDepthEstimation.from_pretrained("apple/DepthPro-hf").to(devic
18
  cmap = mpl.colormaps.get_cmap("Spectral_r")
19
 
20
 
21
- @spaces.GPU(duration=10)
22
  @torch.inference_mode()
23
  def run(image: PIL.Image.Image) -> tuple[tuple[PIL.Image.Image, PIL.Image.Image], str, str, str, str]:
24
  inputs = image_processor(images=image, return_tensors="pt").to(device)
 
18
  cmap = mpl.colormaps.get_cmap("Spectral_r")
19
 
20
 
21
+ @spaces.GPU(duration=20)
22
  @torch.inference_mode()
23
  def run(image: PIL.Image.Image) -> tuple[tuple[PIL.Image.Image, PIL.Image.Image], str, str, str, str]:
24
  inputs = image_processor(images=image, return_tensors="pt").to(device)