Add @spaces.GPU decorations
Browse files85 unmodified lines868788899091929 unmodified lines102103104105106107108184 unmodified lines29329429529429685 unmodified linesdescription = """Looking Glass demo for **Depth Anything V2**.Please refer to our [paper](https://arxiv.org/abs/2406.09414), [project page](https://depth-anything-v2.github.io), or [github](https://github.com/DepthAnything/Depth-Anything-V2) for more details."""
@spaces.GPUdef predict_depth(image, model): w, h = image.size
9 unmodified lines rgbd.paste(gray_depth, (w, 0)) return rgbd
@spaces.GPUdef upscale_image(image, model, background, discard_alpha): if image.mode == "RGBA": if discard_alpha:184 unmodified lines
if __name__ == '__main__': demo.queue().launch(share=True) demo.queue().launch()app.py+3-1