Spaces:
Running
on
Zero
Running
on
Zero
adding examples with caching
Browse files
app.py
CHANGED
@@ -116,7 +116,10 @@ iface = gr.Interface(
|
|
116 |
inputs=gr.Image(type="pil"), # Only image input, no mode selection
|
117 |
outputs=gr.Image(type="pil"), # Only depth image output, no debug info
|
118 |
title="Depth Estimation Demo",
|
119 |
-
description="Upload an image to see the depth estimation results. Our model is running on GPU for faster processing."
|
|
|
|
|
|
|
120 |
)
|
121 |
|
122 |
# Launch the Gradio interface
|
|
|
116 |
inputs=gr.Image(type="pil"), # Only image input, no mode selection
|
117 |
outputs=gr.Image(type="pil"), # Only depth image output, no debug info
|
118 |
title="Depth Estimation Demo",
|
119 |
+
description="Upload an image to see the depth estimation results. Our model is running on GPU for faster processing.",
|
120 |
+
examples=["maizi.jpg", "hair.jpg", "videoframe_10273.png", "videoframe_2168.png", "videoframe_3289.png"],
|
121 |
+
cache_examples=True,
|
122 |
+
cache_mode=True,
|
123 |
)
|
124 |
|
125 |
# Launch the Gradio interface
|