Update app.py
Browse files11 unmodified lines12131415161718192011 unmodified linesfrom apdepth.marigold_pipeline import MarigoldPipelinefrom apdepth.modules.unet_2d_condition import UNet2DConditionModeldef load_example(example_image):# 返回选中的图片return example_imagedevice = "cuda" if torch.cuda.is_available() else "cpu"11 unmodified lines12131415161718192011 unmodified linesfrom apdepth.marigold_pipeline import MarigoldPipelinefrom apdepth.modules.unet_2d_condition import UNet2DConditionModeldef load_example(in-the-wiled_example-1):# 返回选中的图片return in-the-wiled_example-1device = "cuda" if torch.cuda.is_available() else "cpu"
app.py+2-2