Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| def demo_interface(image): | |
| if image is None: | |
| return "請先上傳一張圖片。" | |
| return ( | |
| "圖片已成功上傳。\n\n" | |
| "這是 HAM10000 Skin Cancer Classification Demo 介面。\n" | |
| "目前版本僅展示上傳介面,不進行模型預測。" | |
| ) | |
| demo = gr.Interface( | |
| fn=demo_interface, | |
| inputs=gr.Image(type="pil", label="Upload Skin Lesion Image"), | |
| outputs=gr.Textbox(label="Result", lines=6), | |
| title="HAM10000 Skin Cancer Classification", | |
| description="Upload a skin lesion image. This interface is for project demonstration only." | |
| ) | |
| demo.launch() |