-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtemplate.py
158 lines (139 loc) · 9.52 KB
/
template.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
import os
from pathlib import Path
list_of_files = [
".github/workflows/main.yaml",
"Notebook_Experiments/Data/.gitkeep",
"Notebook_Experiments/Heart_Disease_Prediction.ipynb",
"Notebook_Experiments/Diabetes_Disease_Prediction.ipynb",
"Notebook_Experiments/Breast_Cancer_Prediction.ipynb",
"Notebook_Experiments/Skin_Cancer_Prediction.ipynb",
"Notebook_Experiments/Parkinsons_Disease_Prediction.ipynb",
"Notebook_Experiments/Brain_Tumor_Detection.ipynb",
"Notebook_Experiments/Lung_Disease_Prediction.ipynb",
"Notebook_Experiments/Kidney_Disease_Prediction.ipynb",
"Notebook_Experiments/Liver_Disease_Prediction.ipynb",
"Notebook_Experiments/Pneumonia_Prediction.ipynb",
"Notebook_Experiments/Malaria_Prediction.ipynb",
"Notebook_Experiments/Ocular_Prediction.ipynb",
"src/__init__.py",
"src/exception.py",
"src/logger.py",
"src/utils.py",
"src/Multi_Disease_System/__init__.py",
"src/Multi_Disease_System/Heart_Disease_Prediction/components/__init__.py",
"src/Multi_Disease_System/Heart_Disease_Prediction/components/Data_ingestion.py",
"src/Multi_Disease_System/Heart_Disease_Prediction/components/Data_transformation.py",
"src/Multi_Disease_System/Heart_Disease_Prediction/components/Model_trainer.py",
"src/Multi_Disease_System/Heart_Disease_Prediction/components/Model_evaluation.py",
"src/Multi_Disease_System/Heart_Disease_Prediction/pipelines/__init__.py",
"src/Multi_Disease_System/Heart_Disease_Prediction/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Heart_Disease_Prediction/pipelines/Training_pipeline.py",
"src/Multi_Disease_System/Diabetes_Disease_Prediction/components/__init__.py",
"src/Multi_Disease_System/Diabetes_Disease_Prediction/components/Data_ingestion.py",
"src/Multi_Disease_System/Diabetes_Disease_Prediction/components/Data_transformation.py",
"src/Multi_Disease_System/Diabetes_Disease_Prediction/components/Model_trainer.py",
"src/Multi_Disease_System/Diabetes_Disease_Prediction/components/Model_evaluation.py",
"src/Multi_Disease_System/Diabetes_Disease_Prediction/pipelines/__init__.py",
"src/Multi_Disease_System/Diabetes_Disease_Prediction/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Diabetes_Disease_Prediction/pipelines/Training_pipeline.py",
"src/Multi_Disease_System/Breast_Cancer_Prediction/components/__init__.py",
"src/Multi_Disease_System/Breast_Cancer_Prediction/components/Data_ingestion.py",
"src/Multi_Disease_System/Breast_Cancer_Prediction/components/Data_transformation.py",
"src/Multi_Disease_System/Breast_Cancer_Prediction/components/Model_trainer.py",
"src/Multi_Disease_System/Breast_Cancer_Prediction/components/Model_evaluation.py",
"src/Multi_Disease_System/Breast_Cancer_Prediction/pipelines/__init__.py",
"src/Multi_Disease_System/Breast_Cancer_Prediction/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Breast_Cancer_Prediction/pipelines/Training_pipeline.py",
"src/Multi_Disease_System/Skin_Cancer_Prediction/components/__init__.py",
"src/Multi_Disease_System/Skin_Cancer_Prediction/components/Data_ingestion.py",
"src/Multi_Disease_System/Skin_Cancer_Prediction/components/Data_transformation.py",
"src/Multi_Disease_System/Skin_Cancer_Prediction/components/Model_trainer.py",
"src/Multi_Disease_System/Skin_Cancer_Prediction/components/Model_evaluation.py",
"src/Multi_Disease_System/Skin_Cancer_Prediction/pipelines/__init__.py",
"src/Multi_Disease_System/Skin_Cancer_Prediction/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Skin_Cancer_Prediction/pipelines/Training_pipeline.py",
"src/Multi_Disease_System/Parkinsons_Disease_Prediction/components/__init__.py",
"src/Multi_Disease_System/Parkinsons_Disease_Prediction/components/Data_ingestion.py",
"src/Multi_Disease_System/Parkinsons_Disease_Prediction/components/Data_transformation.py",
"src/Multi_Disease_System/Parkinsons_Disease_Prediction/components/Model_trainer.py",
"src/Multi_Disease_System/Parkinsons_Disease_Prediction/components/Model_evaluation.py",
"src/Multi_Disease_System/Parkinsons_Disease_Prediction/pipelines/__init__.py",
"src/Multi_Disease_System/Parkinsons_Disease_Prediction/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Parkinsons_Disease_Prediction/pipelines/Training_pipeline.py",
"src/Multi_Disease_System/Brain_Tumor_Detection/components/__init__.py",
"src/Multi_Disease_System/Brain_Tumor_Detection/components/Data_ingestion.py",
"src/Multi_Disease_System/Brain_Tumor_Detection/components/Data_transformation.py",
"src/Multi_Disease_System/Brain_Tumor_Detection/components/Model_trainer.py",
"src/Multi_Disease_System/Brain_Tumor_Detection/components/Model_evaluation.py",
"src/Multi_Disease_System/Brain_Tumor_Detection/pipelines/__init__.py",
"src/Multi_Disease_System/Brain_Tumor_Detection/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Brain_Tumor_Detection/pipelines/Training_pipeline.py",
"src/Multi_Disease_System/Lung_Disease_Prediction/components/__init__.py",
"src/Multi_Disease_System/Lung_Disease_Prediction/components/Data_ingestion.py",
"src/Multi_Disease_System/Lung_Disease_Prediction/components/Data_transformation.py",
"src/Multi_Disease_System/Lung_Disease_Prediction/components/Model_trainer.py",
"src/Multi_Disease_System/Lung_Disease_Prediction/components/Model_evaluation.py",
"src/Multi_Disease_System/Lung_Disease_Prediction/pipelines/__init__.py",
"src/Multi_Disease_System/Lung_Disease_Prediction/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Lung_Disease_Prediction/pipelines/Training_pipeline.py",
"src/Multi_Disease_System/Kidney_Disease_Prediction/components/__init__.py",
"src/Multi_Disease_System/Kidney_Disease_Prediction/components/Data_ingestion.py",
"src/Multi_Disease_System/Kidney_Disease_Prediction/components/Data_transformation.py",
"src/Multi_Disease_System/Kidney_Disease_Prediction/components/Model_trainer.py",
"src/Multi_Disease_System/Kidney_Disease_Prediction/components/Model_evaluation.py",
"src/Multi_Disease_System/Kidney_Disease_Prediction/pipelines/__init__.py",
"src/Multi_Disease_System/Kidney_Disease_Prediction/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Kidney_Disease_Prediction/pipelines/Training_pipeline.py",
"src/Multi_Disease_System/Liver_Disease_Prediction/components/__init__.py",
"src/Multi_Disease_System/Liver_Disease_Prediction/components/Data_ingestion.py",
"src/Multi_Disease_System/Liver_Disease_Prediction/components/Data_transformation.py",
"src/Multi_Disease_System/Liver_Disease_Prediction/components/Model_trainer.py",
"src/Multi_Disease_System/Liver_Disease_Prediction/components/Model_evaluation.py",
"src/Multi_Disease_System/Liver_Disease_Prediction/pipelines/__init__.py",
"src/Multi_Disease_System/Liver_Disease_Prediction/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Liver_Disease_Prediction/pipelines/Training_pipeline.py",
"src/Multi_Disease_System/Pneumonia_Prediction/components/__init__.py",
"src/Multi_Disease_System/Pneumonia_Prediction/components/Data_ingestion.py",
"src/Multi_Disease_System/Pneumonia_Prediction/components/Data_transformation.py",
"src/Multi_Disease_System/Pneumonia_Prediction/components/Model_trainer.py",
"src/Multi_Disease_System/Pneumonia_Prediction/components/Model_evaluation.py",
"src/Multi_Disease_System/Pneumonia_Prediction/pipelines/__init__.py",
"src/Multi_Disease_System/Pneumonia_Prediction/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Pneumonia_Prediction/pipelines/Training_pipeline.py",
"src/Multi_Disease_System/Malaria_Prediction/components/__init__.py",
"src/Multi_Disease_System/Malaria_Prediction/components/Data_ingestion.py",
"src/Multi_Disease_System/Malaria_Prediction/components/Data_transformation.py",
"src/Multi_Disease_System/Malaria_Prediction/components/Model_trainer.py",
"src/Multi_Disease_System/Malaria_Prediction/components/Model_evaluation.py",
"src/Multi_Disease_System/Malaria_Prediction/pipelines/__init__.py",
"src/Multi_Disease_System/Malaria_Prediction/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Malaria_Prediction/pipelines/Training_pipeline.py",
"src/Multi_Disease_System/Ocular_Prediction/components/__init__.py",
"src/Multi_Disease_System/Ocular_Prediction/components/Data_ingestion.py",
"src/Multi_Disease_System/Ocular_Prediction/components/Data_transformation.py",
"src/Multi_Disease_System/Ocular_Prediction/components/Model_trainer.py",
"src/Multi_Disease_System/Ocular_Prediction/components/Model_evaluation.py",
"src/Multi_Disease_System/Ocular_Prediction/pipelines/__init__.py",
"src/Multi_Disease_System/Ocular_Prediction/pipelines/Prediction_pipeline.py",
"src/Multi_Disease_System/Ocular_Prediction/pipelines/Training_pipeline.py",
"src/Diet_Recommendation/__init__.py",
"src/Food_Recommendation/__init__.py",
"src/Large_Language_Model/__init__.py",
"static/styles.css",
"templates/index.html",
"templates/result.html",
".gitignore",
"app.py",
"Dockerfile",
"README.md",
"dvc.yaml",
"requirements.txt",
"setup.py"]
for filepath in list_of_files:
filepath = Path(filepath)
filedir,filename = os.path.split(filepath)
if filedir != "":
os.makedirs(filedir, exist_ok=True)
if(not os.path.exists(filepath)) or (os.path.getsize(filepath) == 0):
with open(filepath, "w") as f:
pass