Spaces:
Running
Running
Michael Natanael
commited on
Commit
·
2fc0c7d
1
Parent(s):
816f4f3
change threads to default
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
FROM python:3.9
|
5 |
|
6 |
# Set proper Python threading configuration
|
7 |
-
ENV OMP_NUM_THREADS=4
|
8 |
-
ENV NUMEXPR_NUM_THREADS=4
|
9 |
-
ENV MKL_NUM_THREADS=4
|
10 |
|
11 |
RUN apt update
|
12 |
RUN apt --yes install ffmpeg
|
@@ -21,5 +21,5 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
21 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
22 |
|
23 |
COPY --chown=user . /app
|
24 |
-
|
25 |
-
CMD ["gunicorn", "--timeout", "300", "--workers", "1", "--threads", "4", "-b", "0.0.0.0:7860", "app:app"]
|
|
|
4 |
FROM python:3.9
|
5 |
|
6 |
# Set proper Python threading configuration
|
7 |
+
# ENV OMP_NUM_THREADS=4
|
8 |
+
# ENV NUMEXPR_NUM_THREADS=4
|
9 |
+
# ENV MKL_NUM_THREADS=4
|
10 |
|
11 |
RUN apt update
|
12 |
RUN apt --yes install ffmpeg
|
|
|
21 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
22 |
|
23 |
COPY --chown=user . /app
|
24 |
+
CMD ["gunicorn", "--timeout", "300", "-b", "0.0.0.0:7860", "app:app"]
|
25 |
+
# CMD ["gunicorn", "--timeout", "300", "--workers", "1", "--threads", "4", "-b", "0.0.0.0:7860", "app:app"]
|