Spaces:
Running
Running
File size: 420 Bytes
cb54bbf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import os
import gradio as gr
from model import predict
examples_dir = "assets/examples/"
examples = [[os.path.join(examples_dir, filename)] for filename in os.listdir(examples_dir)]
interface = gr.Interface(
fn=predict,
inputs=gr.Image(type="pil"),
outputs=gr.Image(type="pil"),
title="DepthPro: Monocular Depth Estimation",
examples=examples,
)
if __name__ == "__main__":
interface.launch()
|