File size: 1,759 Bytes
8924789
8fbc2b4
8924789
 
8fbc2b4
 
 
 
 
0cdfdb6
8fbc2b4
 
8924789
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

---
title: Emergency Blood Request Classifier
emoji: 🩸
colorFrom: red
colorTo: pink
sdk: gradio
app_file: app.py
pinned: false
license: apache-2.0
---

# 🩸 Emergency Blood Request Classifier

A simple text classification demo to detect whether a blood donation request is an **emergency** or **non-emergency**.

## πŸ” How It Works

Type or paste a blood request message into the text box and the model will classify it into one of two categories:

- 🚨 **Emergency** β€” Requires immediate attention
- βœ… **Non-Emergency** β€” Can be handled in a routine manner

Along with the verdict, you'll also see the **probability scores** for both classes.

## 🧠 Model

| Detail | Info |
|---|---|
| Base Model | [distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) |
| Fine-tuned Model | [AshenFdo/emergency_blood_request_classifier](https://huggingface.co/AshenFdo/emergency_blood_request_classifier) |
| Dataset | [AshenFdo/synthetic_blood_request_urgency_dataset](https://huggingface.co/datasets/AshenFdo/synthetic_blood_request_urgency_dataset) |
| Task | Text Classification |
| Accuracy | 100% on eval set |

## πŸš€ Try It Out

Just enter a message like:

> *"Patient is in critical condition after surgery and urgently needs O- blood immediately."*

or

> *"Looking for a B+ donor for a planned surgery next month."*

## πŸ”— Links

- πŸ“¦ [Fine-tuned Model](https://huggingface.co/AshenFdo/emergency_blood_request_classifier)
- πŸ“Š [Dataset](https://huggingface.co/datasets/AshenFdo/synthetic_blood_request_urgency_dataset)
- πŸ’» [GitHub](https://github.com/AshenFdo/Blood-Request-Emergency-Classification-Model/blob/main/notebooks/Huggingface_blood_request_emegency_classification_model_fine_tuning_.ipynb)