Spaces:
Sleeping
Sleeping
Mikey Tran
commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,2 +1,33 @@
|
|
| 1 |
# DrugClassifier
|
| 2 |
A machine learning pipeline (CI/CD pipeline)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# DrugClassifier
|
| 2 |
A machine learning pipeline (CI/CD pipeline)
|
| 3 |
+
|
| 4 |
+
## Steps (Local env)
|
| 5 |
+
|
| 6 |
+
1. Training model (train.py)
|
| 7 |
+
|
| 8 |
+
```
|
| 9 |
+
python train.py
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
2. Running app (App/app)
|
| 13 |
+
|
| 14 |
+
```
|
| 15 |
+
streamlit run ./App/app.py
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
## CI/ CD
|
| 19 |
+
|
| 20 |
+
### Settings
|
| 21 |
+
Configure secrets environment variables.
|
| 22 |
+
- TOKEN (github token)
|
| 23 |
+
- HF_TOKEN (huggingface token access)
|
| 24 |
+
- USER_NAME
|
| 25 |
+
- USER_EMAIL
|
| 26 |
+
|
| 27 |
+
### CI/ CD running
|
| 28 |
+
There are 2 parts for workflow, you can create .yaml files in "Actions" of Github bar fpr running:
|
| 29 |
+
- CI
|
| 30 |
+
- CD
|
| 31 |
+
|
| 32 |
+
### Huggingface
|
| 33 |
+
https://huggingface.co/spaces/quangtn266/Drug-Classification
|