ghost233lism commited on
Commit
01e8ff6
·
verified ·
1 Parent(s): 426769f

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -155,7 +155,7 @@ with gr.Blocks(title="Depth Anything AC - Depth Estimation Demo", theme=gr.theme
155
  5. View the results and download
156
  """)
157
 
158
- with gr.Row():
159
  with gr.Column(scale=1):
160
  # Input source selection
161
  input_source = gr.Radio(
@@ -168,8 +168,10 @@ with gr.Blocks(title="Depth Anything AC - Depth Estimation Demo", theme=gr.theme
168
  upload_image = gr.Image(
169
  label="Upload Image",
170
  type="pil",
171
- height=450,
172
- visible=True
 
 
173
  )
174
 
175
  # Camera component
@@ -177,8 +179,10 @@ with gr.Blocks(title="Depth Anything AC - Depth Estimation Demo", theme=gr.theme
177
  label="Camera Input",
178
  type="pil",
179
  sources=["webcam"],
180
- height=450,
181
- visible=False
 
 
182
  )
183
 
184
  colormap_choice = gr.Dropdown(
@@ -197,7 +201,9 @@ with gr.Blocks(title="Depth Anything AC - Depth Estimation Demo", theme=gr.theme
197
  output_image = gr.Image(
198
  label="Depth Map Result",
199
  type="pil",
200
- height=450
 
 
201
  )
202
 
203
  # Function to switch between upload and camera input
 
155
  5. View the results and download
156
  """)
157
 
158
+ with gr.Row(equal_height=True):
159
  with gr.Column(scale=1):
160
  # Input source selection
161
  input_source = gr.Radio(
 
168
  upload_image = gr.Image(
169
  label="Upload Image",
170
  type="pil",
171
+ height=500,
172
+ visible=True,
173
+ container=True,
174
+ show_label=True
175
  )
176
 
177
  # Camera component
 
179
  label="Camera Input",
180
  type="pil",
181
  sources=["webcam"],
182
+ height=500,
183
+ visible=False,
184
+ container=True,
185
+ show_label=True
186
  )
187
 
188
  colormap_choice = gr.Dropdown(
 
201
  output_image = gr.Image(
202
  label="Depth Map Result",
203
  type="pil",
204
+ height=500,
205
+ container=True,
206
+ show_label=True
207
  )
208
 
209
  # Function to switch between upload and camera input