Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -41,11 +41,20 @@ pip install -r requirements.txt
|
|
| 41 |
```
|
| 42 |
|
| 43 |
### 2. Run Prediction Script
|
| 44 |
-
We provide a standalone script `predict.py` that loads the model and runs a prediction
|
|
|
|
|
|
|
| 45 |
```bash
|
| 46 |
python predict.py
|
| 47 |
```
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
### 3. Usage in Python
|
| 50 |
```python
|
| 51 |
import pickle
|
|
|
|
| 41 |
```
|
| 42 |
|
| 43 |
### 2. Run Prediction Script
|
| 44 |
+
We provide a standalone script `predict.py` that loads the model and runs a prediction.
|
| 45 |
+
|
| 46 |
+
**Basic Usage (Default Sample):**
|
| 47 |
```bash
|
| 48 |
python predict.py
|
| 49 |
```
|
| 50 |
|
| 51 |
+
**Custom Input Usage:**
|
| 52 |
+
You can pass patient data as command-line arguments:
|
| 53 |
+
```bash
|
| 54 |
+
python predict.py --age 65 --bmi 28.5 --hypertension 1 --gender Female
|
| 55 |
+
```
|
| 56 |
+
Use `python predict.py --help` to see all available options.
|
| 57 |
+
|
| 58 |
### 3. Usage in Python
|
| 59 |
```python
|
| 60 |
import pickle
|