Spaces:
Sleeping
Sleeping
Albert-NHWang
commited on
Commit
•
a980512
1
Parent(s):
0488354
Update app.py
Browse files
app.py
CHANGED
@@ -49,17 +49,7 @@ Luca Biada, https://www.flickr.com/photos/pedroscreamerovsky/6798474782/, CC BY
|
|
49 |
with gr.Blocks(css="style.css") as demo:
|
50 |
gr.HTML(intro)
|
51 |
with gr.Row():
|
52 |
-
input_image = gr.
|
53 |
-
output_rgb = gr.Image(label="Loaded Image", type="filepath")
|
54 |
-
with gr.Row():
|
55 |
-
load_button = gr.Button("Load RGB!", visible=True)
|
56 |
-
|
57 |
-
load_button.click(fn = lambda x: x,
|
58 |
-
inputs = [input_image],
|
59 |
-
outputs = [output_rgb]
|
60 |
-
)
|
61 |
-
|
62 |
-
with gr.Row():
|
63 |
output_image = gr.Image(label="Output Depth", type="filepath")
|
64 |
|
65 |
with gr.Row():
|
@@ -71,11 +61,8 @@ with gr.Blocks(css="style.css") as demo:
|
|
71 |
)
|
72 |
|
73 |
gr.Examples(
|
74 |
-
|
75 |
-
inputs=[input_image],
|
76 |
-
outputs=[output_rgb],
|
77 |
examples=get_example(),
|
78 |
-
run_on_click=True,
|
79 |
cache_examples=False)
|
80 |
|
81 |
gr.HTML(footnote)
|
|
|
49 |
with gr.Blocks(css="style.css") as demo:
|
50 |
gr.HTML(intro)
|
51 |
with gr.Row():
|
52 |
+
input_image = gr.Image(type="filepath")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
output_image = gr.Image(label="Output Depth", type="filepath")
|
54 |
|
55 |
with gr.Row():
|
|
|
61 |
)
|
62 |
|
63 |
gr.Examples(
|
64 |
+
inputs=[input_image],
|
|
|
|
|
65 |
examples=get_example(),
|
|
|
66 |
cache_examples=False)
|
67 |
|
68 |
gr.HTML(footnote)
|