oxkitsune commited on
Commit
6e399cb
·
1 Parent(s): 5fb11b1

fix examples

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -110,9 +110,9 @@ def run_rerun(path_to_image):
110
  "world/camera",
111
  rr.Pinhole(
112
  focal_length=focal_length,
113
- width=depth.shape[0],
114
- height=depth.shape[1],
115
- principal_point=(depth.shape[0] / 2, depth.shape[1] / 2),
116
  camera_xyz=rr.ViewCoordinates.FLU,
117
  ),
118
  )
@@ -150,9 +150,7 @@ with gr.Blocks() as interface:
150
  examples = gr.Examples(
151
  example_images,
152
  label="Example Images",
153
- fn=run_rerun,
154
  inputs=[image],
155
- outputs=[visualize],
156
  )
157
  with gr.Column():
158
  viewer = Rerun(
 
110
  "world/camera",
111
  rr.Pinhole(
112
  focal_length=focal_length,
113
+ width=depth.shape[1],
114
+ height=depth.shape[0],
115
+ principal_point=(depth.shape[1] / 2, depth.shape[0] / 2),
116
  camera_xyz=rr.ViewCoordinates.FLU,
117
  ),
118
  )
 
150
  examples = gr.Examples(
151
  example_images,
152
  label="Example Images",
 
153
  inputs=[image],
 
154
  )
155
  with gr.Column():
156
  viewer = Rerun(