DepthPro / app.py
geetu040's picture
upload app
cb54bbf
raw
history blame contribute delete
420 Bytes
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()