Spaces:
Running
on
Zero
Running
on
Zero
Add cache
Browse files
app.py
CHANGED
@@ -143,7 +143,10 @@ with gr.Blocks(css=css) as demo:
|
|
143 |
example_files = os.listdir('assets/examples')
|
144 |
example_files.sort()
|
145 |
example_files = [os.path.join('assets/examples', filename) for filename in example_files]
|
146 |
-
examples = gr.Examples(
|
|
|
|
|
|
|
147 |
|
148 |
|
149 |
if __name__ == '__main__':
|
|
|
143 |
example_files = os.listdir('assets/examples')
|
144 |
example_files.sort()
|
145 |
example_files = [os.path.join('assets/examples', filename) for filename in example_files]
|
146 |
+
examples = gr.Examples(
|
147 |
+
examples=example_files, inputs=[input_image, model_select_v1, model_select_v2],
|
148 |
+
outputs=[depth_image_slider], fn=on_submit, cache_examples="lazy",
|
149 |
+
)
|
150 |
|
151 |
|
152 |
if __name__ == '__main__':
|