Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,8 @@ import numpy as np
|
|
8 |
model = hub.Module(name='MiDaS_Large', use_gpu=False)
|
9 |
|
10 |
def inference(img):
|
11 |
-
|
12 |
-
|
13 |
-
return data32
|
14 |
|
15 |
|
16 |
title="MiDaS_Large"
|
|
|
8 |
model = hub.Module(name='MiDaS_Large', use_gpu=False)
|
9 |
|
10 |
def inference(img):
|
11 |
+
model.depth_estimation(images=[cv2.imread(img)],visualization=True)
|
12 |
+
return './output/0.png'
|
|
|
13 |
|
14 |
|
15 |
title="MiDaS_Large"
|