Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -88,9 +88,9 @@ with gr.Blocks(css=css) as demo:
|
|
88 |
|
89 |
submit.click(on_submit, inputs=[input_image], outputs=[depth_image_slider, raw_file])
|
90 |
|
91 |
-
example_files = os.listdir('
|
92 |
example_files.sort()
|
93 |
-
example_files = [os.path.join('
|
94 |
examples = gr.Examples(examples=example_files, inputs=[input_image], outputs=[depth_image_slider, raw_file], fn=on_submit, cache_examples=True)
|
95 |
|
96 |
with gr.Tab("Video Depth Prediction"):
|
@@ -139,9 +139,9 @@ with gr.Blocks(css=css) as demo:
|
|
139 |
|
140 |
submit.click(on_submit, inputs=[input_video], outputs=processed_video)
|
141 |
|
142 |
-
example_files = os.listdir('
|
143 |
example_files.sort()
|
144 |
-
example_files = [os.path.join('
|
145 |
examples = gr.Examples(examples=example_files, inputs=[input_video], outputs=processed_video, fn=on_submit, cache_examples=True)
|
146 |
|
147 |
|
|
|
88 |
|
89 |
submit.click(on_submit, inputs=[input_image], outputs=[depth_image_slider, raw_file])
|
90 |
|
91 |
+
example_files = os.listdir('examples')
|
92 |
example_files.sort()
|
93 |
+
example_files = [os.path.join('examples', filename) for filename in example_files]
|
94 |
examples = gr.Examples(examples=example_files, inputs=[input_image], outputs=[depth_image_slider, raw_file], fn=on_submit, cache_examples=True)
|
95 |
|
96 |
with gr.Tab("Video Depth Prediction"):
|
|
|
139 |
|
140 |
submit.click(on_submit, inputs=[input_video], outputs=processed_video)
|
141 |
|
142 |
+
example_files = os.listdir('examples_video')
|
143 |
example_files.sort()
|
144 |
+
example_files = [os.path.join('examples_video', filename) for filename in example_files]
|
145 |
examples = gr.Examples(examples=example_files, inputs=[input_video], outputs=processed_video, fn=on_submit, cache_examples=True)
|
146 |
|
147 |
|