Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -183,7 +183,7 @@ def main(share=True):
|
|
| 183 |
with gr.Column():
|
| 184 |
input_image = gr.Image(label="Input Image", image_mode="RGB", type='numpy', elem_id='img-display-input')
|
| 185 |
with gr.Accordion(label="Settings", open=False):
|
| 186 |
-
denoise_steps = gr.Slider(label="Denoising Steps", minimum=1, maximum=
|
| 187 |
apply_filter = gr.Checkbox(label="Apply filter points", value=True)
|
| 188 |
submit_btn = gr.Button(value="Predict")
|
| 189 |
|
|
@@ -215,7 +215,7 @@ def main(share=True):
|
|
| 215 |
example_files = [os.path.join('assets/examples', filename) for filename in example_files]
|
| 216 |
examples = gr.Examples(
|
| 217 |
examples=example_files,
|
| 218 |
-
inputs=
|
| 219 |
outputs=[depth_map, model_3d, download_files],
|
| 220 |
fn=on_submit
|
| 221 |
)
|
|
|
|
| 183 |
with gr.Column():
|
| 184 |
input_image = gr.Image(label="Input Image", image_mode="RGB", type='numpy', elem_id='img-display-input')
|
| 185 |
with gr.Accordion(label="Settings", open=False):
|
| 186 |
+
denoise_steps = gr.Slider(label="Denoising Steps", minimum=1, maximum=100, value=20, step=1)
|
| 187 |
apply_filter = gr.Checkbox(label="Apply filter points", value=True)
|
| 188 |
submit_btn = gr.Button(value="Predict")
|
| 189 |
|
|
|
|
| 215 |
example_files = [os.path.join('assets/examples', filename) for filename in example_files]
|
| 216 |
examples = gr.Examples(
|
| 217 |
examples=example_files,
|
| 218 |
+
inputs=input_image,
|
| 219 |
outputs=[depth_map, model_3d, download_files],
|
| 220 |
fn=on_submit
|
| 221 |
)
|