ysharma HF staff commited on
Commit
424f6ed
·
verified ·
1 Parent(s): 3184906

adding examples with caching

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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