Spaces:
Sleeping
Sleeping
Henamen21
commited on
Commit
·
69042ad
1
Parent(s):
408a5d8
pipeline add
Browse files- Dockerfile +3 -1
- app.py +1 -1
- pipeline.pkl +3 -0
Dockerfile
CHANGED
@@ -3,9 +3,11 @@ FROM python:3.9
|
|
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 |
COPY . .
|
10 |
|
11 |
-
CMD ["
|
|
|
|
3 |
WORKDIR /code
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
+
COPY pipeline.pkl /code/pipeline.pkl
|
7 |
|
8 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
9 |
|
10 |
COPY . .
|
11 |
|
12 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
13 |
+
|
app.py
CHANGED
@@ -13,7 +13,7 @@ import warnings
|
|
13 |
warnings.filterwarnings('ignore')
|
14 |
|
15 |
# Pieline loading
|
16 |
-
with open("
|
17 |
pipe = pickle.load(f)
|
18 |
|
19 |
app = FastAPI( title = "The classification API for predicting Sepsis positve / negative") # instantiating fastAPI object
|
|
|
13 |
warnings.filterwarnings('ignore')
|
14 |
|
15 |
# Pieline loading
|
16 |
+
with open("pipeline.pkl", "rb") as f:
|
17 |
pipe = pickle.load(f)
|
18 |
|
19 |
app = FastAPI( title = "The classification API for predicting Sepsis positve / negative") # instantiating fastAPI object
|
pipeline.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:67dd7003a0de64f7dcd9e1a2d74e220250bc2170d643979057b8905652cda801
|
3 |
+
size 233590
|