Spaces:
Runtime error
Runtime error
File size: 522 Bytes
f092df4 76322af f092df4 76322af f092df4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import gradio as gr
from inference import inference
from prepare_samples import prepare_samples
TITLE = "DPT Depth"
DESCRIPTION = "Gradio demo for DPT-Depth"
examples = prepare_samples()
demo = gr.Interface(
fn=inference,
inputs=[
gr.Image(label="RGB", type="pil"),
],
outputs=[
gr.Image(label="Prediction", type="pil"),
],
title=TITLE,
examples=examples,
description=DESCRIPTION,
)
if __name__ == "__main__":
demo.launch(server_name="0.0.0.0") # server_port=8541
|