Spaces:
Sleeping
Sleeping
Download app.py from william1324/222: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/spaces/william1324/222/resolve/main/app.py
- Command line
-
hf download hf://spaces/william1324/222/app.py
-
curl -L -o app.py https://huggingface.co/spaces/william1324/222/resolve/main/app.py
637 Bytes
| 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() |