Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files
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=
|
| 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)
|