zino36 commited on
Commit
85c5343
·
verified ·
1 Parent(s): a5d70a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ with gr.Blocks(css=css) as demo:
86
 
87
  depth = predict_depth(image[:, :, ::-1])
88
 
89
- raw_depth = Image.fromarray(depth.astype('uint16'))
90
  tmp_raw_depth = tempfile.NamedTemporaryFile(suffix='.png', delete=False)
91
  raw_depth.save(tmp_raw_depth.name)
92
 
 
86
 
87
  depth = predict_depth(image[:, :, ::-1])
88
 
89
+ raw_depth = Image.fromarray(depth)
90
  tmp_raw_depth = tempfile.NamedTemporaryFile(suffix='.png', delete=False)
91
  raw_depth.save(tmp_raw_depth.name)
92