Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,6 @@ def process_image(image):
|
|
31 |
output = prediction.cpu().numpy()
|
32 |
formatted = (output * 255 / np.max(output)).astype('uint8')
|
33 |
img = Image.fromarray(formatted)
|
34 |
-
|
35 |
return img
|
36 |
|
37 |
# Interface
|
@@ -41,7 +40,7 @@ description = "Intel's DPT: Dense Prediction Transformer for depth estimation fr
|
|
41 |
iface = gr.Interface(
|
42 |
fn=process_image,
|
43 |
inputs=gr.inputs.Image(type="pil", label="Input Image"),
|
44 |
-
outputs=
|
45 |
title=title,
|
46 |
description=description,
|
47 |
allow_flagging="never"
|
|
|
31 |
output = prediction.cpu().numpy()
|
32 |
formatted = (output * 255 / np.max(output)).astype('uint8')
|
33 |
img = Image.fromarray(formatted)
|
|
|
34 |
return img
|
35 |
|
36 |
# Interface
|
|
|
40 |
iface = gr.Interface(
|
41 |
fn=process_image,
|
42 |
inputs=gr.inputs.Image(type="pil", label="Input Image"),
|
43 |
+
outputs=predicted_depth,
|
44 |
title=title,
|
45 |
description=description,
|
46 |
allow_flagging="never"
|