From 8a7134f72705de798c51d865def4ca39668e59ac Mon Sep 17 00:00:00 2001 From: itqop Date: Wed, 23 Oct 2024 02:32:55 +0300 Subject: [PATCH] Add uvloop --- Dockerfile | 2 +- app/models/schemas.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 62481e8..1dee00e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,4 @@ RUN pip install torch --index-url https://download.pytorch.org/whl/cpu EXPOSE 8002 -CMD ["gunicorn", "app.main:app", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8002", "--workers", "4"] +CMD ["gunicorn", "app.main:app", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8002", "--workers", "4", "--loop", "uvloop"] diff --git a/app/models/schemas.py b/app/models/schemas.py index 7d188d7..f1070bf 100644 --- a/app/models/schemas.py +++ b/app/models/schemas.py @@ -1,5 +1,3 @@ -# app/models/schemas.py - from pydantic import BaseModel, Field class TextInput(BaseModel):