Spaces:
Sleeping
Sleeping
angelaoryza commited on
Commit ·
440bfc7
1
Parent(s): 8e9631d
Initializing
Browse files- Dockerfile +11 -0
- model.pkl +0 -0
- requirements.txt +18 -0
Dockerfile
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
+
WORKDIR /code
|
| 3 |
+
COPY ./requirements.txt /code/requirements.txt
|
| 4 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 5 |
+
RUN useradd -m -u 1000 user
|
| 6 |
+
USER user
|
| 7 |
+
ENV HOME=/home/user \
|
| 8 |
+
PATH=/home/user/.local/bin:$PATH
|
| 9 |
+
WORKDIR $HOME/app
|
| 10 |
+
COPY --chown=user . $HOME/app
|
| 11 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
model.pkl
ADDED
|
Binary file (633 Bytes). View file
|
|
|
requirements.txt
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
anyio>=3.7.1
|
| 2 |
+
click==8.1.7
|
| 3 |
+
fastapi==0.103.2
|
| 4 |
+
h11==0.14.0
|
| 5 |
+
httptools==0.6.0
|
| 6 |
+
idna==3.4
|
| 7 |
+
pydantic==2.4.2
|
| 8 |
+
python-dotenv==1.0.0
|
| 9 |
+
python-multipart==0.0.6
|
| 10 |
+
PyYAML==6.0.1
|
| 11 |
+
sniffio==1.3.0
|
| 12 |
+
starlette>=0.27.0
|
| 13 |
+
typing_extensions==4.8.0
|
| 14 |
+
uvicorn==0.23.2
|
| 15 |
+
watchfiles==0.20.0
|
| 16 |
+
websockets==11.0.3
|
| 17 |
+
scikit-learn
|
| 18 |
+
jinja2
|