Spaces:
Sleeping
Sleeping
singhjagpreet
commited on
Commit
•
32a1064
1
Parent(s):
a4f4118
added dockerfile
Browse files- Dockerfile +15 -0
- application.py +1 -1
- requirements.txt +0 -1
Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
2 |
+
|
3 |
+
COPY src /app/src/
|
4 |
+
COPY artifacts/model.pkl /app/artifacts/model.pkl
|
5 |
+
COPY artifacts/preprocessor.pkl /app/artifacts/preprocessor.pkl
|
6 |
+
COPY templates /app/templates
|
7 |
+
COPY application.py /app/application.py
|
8 |
+
COPY requirements.txt /app/requirements.txt
|
9 |
+
|
10 |
+
|
11 |
+
WORKDIR /app
|
12 |
+
|
13 |
+
|
14 |
+
RUN pip install -r requirements.txt
|
15 |
+
CMD python application.py
|
application.py
CHANGED
@@ -43,4 +43,4 @@ def predict_datapoint():
|
|
43 |
raise CustomException(e,sys)
|
44 |
|
45 |
if __name__ == '__main__':
|
46 |
-
app.run(host='0.0.0.0')
|
|
|
43 |
raise CustomException(e,sys)
|
44 |
|
45 |
if __name__ == '__main__':
|
46 |
+
app.run(host='0.0.0.0',port=5000)
|
requirements.txt
CHANGED
@@ -26,7 +26,6 @@ kiwisolver==1.4.5
|
|
26 |
MarkupSafe==2.1.3
|
27 |
matplotlib==3.7.2
|
28 |
matplotlib-inline==0.1.6
|
29 |
-
-e .
|
30 |
nest-asyncio==1.5.7
|
31 |
numpy==1.25.2
|
32 |
packaging==23.1
|
|
|
26 |
MarkupSafe==2.1.3
|
27 |
matplotlib==3.7.2
|
28 |
matplotlib-inline==0.1.6
|
|
|
29 |
nest-asyncio==1.5.7
|
30 |
numpy==1.25.2
|
31 |
packaging==23.1
|