Skip to content

Commit 89087c2

Browse files
committed
Change HF detctor workers to 1 to match SR
1 parent 18e1d2b commit 89087c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detectors/Dockerfile.hf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ RUN mkdir /common; cp /app/detectors/common/log_conf.yaml /common/
102102
COPY ./huggingface/app.py /app
103103

104104
EXPOSE 8000
105-
CMD ["uvicorn", "app:app", "--workers", "4", "--host", "0.0.0.0", "--port", "8000", "--log-config", "/common/log_conf.yaml"]
105+
CMD ["uvicorn", "app:app", "--workers", "1", "--host", "0.0.0.0", "--port", "8000", "--log-config", "/common/log_conf.yaml"]
106106

107107
# gunicorn main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000

0 commit comments

Comments
 (0)