Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.14.0
metadata
title: Blood Group Prediction
emoji: 🩸
colorFrom: red
colorTo: pink
sdk: gradio
sdk_version: 4.7.1
app_file: app.py
pinned: false
Blood Group Prediction Model
This is a machine learning model that predicts blood groups from blood sample images using deep learning.
Features
- Upload blood sample images
- Get blood group prediction (A+, A-, AB+, AB-, B+, B-, O+, O-)
- View confidence scores
- Simple and intuitive interface
How to Use
- Upload an image of a blood sample
- Click submit
- View the predicted blood group and confidence score
Model Information
This model uses a ResNet-based architecture trained on blood sample images to classify them into 8 different blood group categories.
API Usage
This space also provides an API endpoint that can be called programmatically:
import requests
# Send image to the API
response = requests.post(
"https://YOUR_USERNAME-blood-group-prediction.hf.space/api/predict",
files={"data": open("blood_sample.jpg", "rb")}
)
result = response.json()
print(f"Blood Group: {result['data'][0]}")
print(f"Confidence: {result['data'][1]}")
Disclaimer
This model is for educational and research purposes only. It should not be used for actual medical diagnosis. Always consult with healthcare professionals for medical decisions.