Add uvloop

This commit is contained in:
itqop 2024-10-23 02:32:55 +03:00
parent 755053d7e9
commit 8a7134f727
2 changed files with 1 additions and 3 deletions

View File

@ -14,4 +14,4 @@ RUN pip install torch --index-url https://download.pytorch.org/whl/cpu
EXPOSE 8002 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"]

View File

@ -1,5 +1,3 @@
# app/models/schemas.py
from pydantic import BaseModel, Field from pydantic import BaseModel, Field
class TextInput(BaseModel): class TextInput(BaseModel):