Spaces:
Running
Running
| import gradio as gr | |
| from run import DepthMopdel | |
| myModel = DepthMopdel() | |
| def to_black(image): | |
| return myModel.inference(image) | |
| interface = gr.Interface(fn=to_black, inputs="image", outputs="image").queue(default_concurrency_limit=1) | |
| interface.launch() | |