freealise commited on
Commit
b624482
·
verified ·
1 Parent(s): e8c8522

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -100,7 +100,8 @@ with gr.Blocks(css=css) as demo:
100
  raw_file = gr.File(label="16-bit raw output (can be considered as disparity)", elem_id="download",)
101
  cmap = matplotlib.colormaps.get_cmap('Spectral_r')
102
 
103
- def on_submit(image):
 
104
  original_image = image.copy()
105
 
106
  h, w = image.shape[:2]
 
100
  raw_file = gr.File(label="16-bit raw output (can be considered as disparity)", elem_id="download",)
101
  cmap = matplotlib.colormaps.get_cmap('Spectral_r')
102
 
103
+ def on_submit(img_d):
104
+ image = cv2.cvtColor(img_d["composite"], cv2.COLOR_RGBA2RGB)
105
  original_image = image.copy()
106
 
107
  h, w = image.shape[:2]