kingabzpro commited on
Commit
02bd39c
·
verified ·
1 Parent(s): 36cd8fa

Sync App files

Browse files
Files changed (1) hide show
  1. 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 drug based on patient features.
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 = """<center>
46
 
47
- [![GitHub Repo stars](https://img.shields.io/github/stars/kingabzpro/CICD-for-Machine-Learning)](https://github.com/kingabzpro/CICD-for-Machine-Learning)[![Follow me on HF](https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-me-on-HF-md.svg)](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
- [![DataCamp](https://img.shields.io/badge/Datacamp-05192D?style=for-the-badge&logo=datacamp&logoColor=65FF8F)](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,