Views
No views yet
GET /ping1{
2 "status": "alive",
3 "filter_loaded": true,
4 "fusion_loaded": true,
5 "device": "cuda"
6}1POST /predict
2Content-Type: multipart/form-data1{
2 "class": "Melanoma",
3 "confidence": 0.95,
4 "stage": "Diagnosis",
5 "filter_check": "Passed (Skin)",
6 "filter_confidence": 0.98
7}1import requests
2
3# Health check
4response = requests.get("https://zrn2003-skinsight-ai.hf.space/ping")
5print(response.json())
6
7# Prediction
8with open("skin_image.jpg", "rb") as f:
9 files = {"file": f}
10 response = requests.post(
11 "https://zrn2003-skinsight-ai.hf.space/predict",
12 files=files
13 )
14 result = response.json()
15 print(f"Diagnosis: {result['class']}")
16 print(f"Confidence: {result['confidence']:.2%}")1# Health check
2curl https://zrn2003-skinsight-ai.hf.space/ping
3
4# Prediction
5curl -X POST https://zrn2003-skinsight-ai.hf.space/predict \
6 -F "file=@skin_image.jpg"1const formData = new FormData();
2formData.append('file', fileInput.files[0]);
3
4const response = await fetch('https://zrn2003-skinsight-ai.hf.space/predict', {
5 method: 'POST',
6 body: formData
7});
8
9const result = await response.json();
10console.log(result);1@software{skinsight2025,
2 title={SkinSight AI: Deep Learning for Skin Disease Detection},
3 author={Your Name},
4 year={2025},
5 url={https://huggingface.co/zrn2003/SkinSight}
6}https://zrn2003-skinsight-ai.hf.space