HAMIM-ML commited on
Commit
9476c82
·
1 Parent(s): dd5df30

ci cd pipeline added

Browse files
Files changed (3) hide show
  1. .github/main.yaml +20 -0
  2. Dockerfile +12 -0
  3. README.md +63 -1
.github/main.yaml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ # to run this workflow manually from the Actions tab
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ sync-to-hub:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ with:
16
+ fetch-depth: 0
17
+ - name: Push to hub
18
+ env:
19
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ run: git push --force https://Md-Hakim:[email protected]/spaces/Md-Hakim/image-colorization-mlops main
Dockerfile CHANGED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+
9
+
10
+ COPY . /code/
11
+
12
+ CMD ["streamlit", "run", "app.py"]
README.md CHANGED
@@ -1 +1,63 @@
1
- # image-colorization-mlops
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Image Colorization using Mlops
3
+ emoji: 📉
4
+ colorFrom: red
5
+ colorTo: yellow
6
+ sdk: streamlit
7
+ sdk_version: 1.37.1
8
+ app_file: app.py
9
+ pinned: false
10
+ license: mit
11
+ ---
12
+
13
+
14
+
15
+ # image-colorization-mlops
16
+
17
+
18
+ ## Workflows
19
+
20
+ 1. Update config.yaml
21
+ 2. Update secrets.yaml [Optional]
22
+ 3. Update params.yaml
23
+ 4. Update the entity
24
+ 5. Update the configuration manager in src config
25
+ 6. Update the components
26
+ 7. Update the pipeline
27
+ 8. Update the main.py
28
+ 9. Update the dvc.yaml
29
+ 10. app.py
30
+
31
+ # How to run?
32
+ ### STEPS:
33
+
34
+ Clone the repository
35
+
36
+ ```bash
37
+ https://github.com/HAKIM-ML/
38
+ image-colorization-mlops
39
+
40
+ ### STEP 01- Create a conda environment after opening the repository
41
+
42
+ ```bash
43
+ conda create -n cnncls python=3.8 -y
44
+ ```
45
+
46
+ ```bash
47
+ conda activate cnncls
48
+ ```
49
+
50
+
51
+ ### STEP 02- install the requirements
52
+ ```bash
53
+ pip install -r requirements.txt
54
+ ```
55
+
56
+ ```bash
57
+ # Finally run the following command
58
+ python app.py
59
+ ```
60
+
61
+ Now,
62
+ ```bash
63
+ open up you local host and port