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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ Please refer to our [paper](https://arxiv.org/abs/2406.09414), [project page](ht
63
  @spaces.GPU
64
  def predict_depth(image):
65
  #return model.infer_image(image)
66
- return pipe("http://images.cocodataset.org/val2017/000000039769.jpg")["depth"]
67
 
68
  with gr.Blocks(css=css) as demo:
69
  gr.Markdown(title)
 
63
  @spaces.GPU
64
  def predict_depth(image):
65
  #return model.infer_image(image)
66
+ return pipe(Image.fromarray(image))["depth"]
67
 
68
  with gr.Blocks(css=css) as demo:
69
  gr.Markdown(title)