Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -61,6 +61,8 @@ title = "# Video Depth Anything + RGBD sbs output"
|
|
61 |
description = """**Video Depth Anything** + RGBD sbs output for viewing with Looking Glass Factory displays.
|
62 |
Please refer to our [paper](https://arxiv.org/abs/2501.12375), [project page](https://videodepthanything.github.io/), and [github](https://github.com/DepthAnything/Video-Depth-Anything) for more details."""
|
63 |
|
|
|
|
|
64 |
def infer_video_depth(
|
65 |
input_video: str,
|
66 |
max_len: int = -1,
|
@@ -205,6 +207,6 @@ def construct_demo():
|
|
205 |
|
206 |
if __name__ == "__main__":
|
207 |
demo = construct_demo()
|
208 |
-
demo.queue() # Enable asynchronous processing.
|
209 |
#demo.launch(share=True)
|
210 |
-
demo.
|
|
|
61 |
description = """**Video Depth Anything** + RGBD sbs output for viewing with Looking Glass Factory displays.
|
62 |
Please refer to our [paper](https://arxiv.org/abs/2501.12375), [project page](https://videodepthanything.github.io/), and [github](https://github.com/DepthAnything/Video-Depth-Anything) for more details."""
|
63 |
|
64 |
+
@spaces.GPU(enable_queue=True)
|
65 |
+
|
66 |
def infer_video_depth(
|
67 |
input_video: str,
|
68 |
max_len: int = -1,
|
|
|
207 |
|
208 |
if __name__ == "__main__":
|
209 |
demo = construct_demo()
|
210 |
+
#demo.queue() # Enable asynchronous processing.
|
211 |
#demo.launch(share=True)
|
212 |
+
demo.queue(max_size=2).launch()
|