File size: 520 Bytes
2e78bab
 
7ef81f1
 
b899d5f
 
6767397
7ef81f1
 
2e78bab
7ef81f1
 
 
 
 
 
 
 
 
 
 
2e78bab
7ef81f1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import gradio as gr

def depth_estimation(image):
    """最もシンプルな深度推定テスト"""
    if image is None:
        return None, None
    
    # まずは画像をそのまま返すテスト
    return image, image

# 最小限のGradio Interface
demo = gr.Interface(
    fn=depth_estimation,
    inputs=gr.Image(type="pil"),
    outputs=[
        gr.Image(label="元画像"),
        gr.Image(label="深度マップ")
    ],
    title="深度推定 API",
    description="テスト中"
)

demo.launch()