Sync App files
Browse files- drug_app.py +2 -11
drug_app.py
CHANGED
@@ -5,7 +5,7 @@ pipe = sio.load("./Model/drug_pipeline.skops", trusted=True)
|
|
5 |
|
6 |
|
7 |
def predict_drug(age, sex, blood_pressure, cholesterol, na_to_k_ratio):
|
8 |
-
"""Predict
|
9 |
|
10 |
Args:
|
11 |
age (int): Age of patient
|
@@ -42,17 +42,8 @@ examples = [
|
|
42 |
|
43 |
title = "Drug Classification"
|
44 |
description = "Enter the details to correctly identify Drug type?"
|
45 |
-
article = ""
|
46 |
|
47 |
-
[](https://github.com/kingabzpro/CICD-for-Machine-Learning)[](https://huggingface.co/kingabzpro)
|
48 |
-
|
49 |
-
**This app is a part of the Beginner's Guide to CI/CD for Machine Learning.**
|
50 |
-
|
51 |
-
**It teaches how to automate training, evaluation, and deployment of models to Hugging Face using GitHub Actions.**
|
52 |
-
|
53 |
-
[](https://www.datacamp.com/portfolio/kingabzpro)
|
54 |
-
|
55 |
-
</center>"""
|
56 |
|
57 |
gr.Interface(
|
58 |
fn=predict_drug,
|
|
|
5 |
|
6 |
|
7 |
def predict_drug(age, sex, blood_pressure, cholesterol, na_to_k_ratio):
|
8 |
+
"""Predict drugs based on patient features.
|
9 |
|
10 |
Args:
|
11 |
age (int): Age of patient
|
|
|
42 |
|
43 |
title = "Drug Classification"
|
44 |
description = "Enter the details to correctly identify Drug type?"
|
45 |
+
article = "This app is a part of the Beginner's Guide to CI/CD for Machine Learning. It teaches how to automate training, evaluation, and deployment of models to Hugging Face using GitHub Actions."
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
gr.Interface(
|
49 |
fn=predict_drug,
|