Add uvloop
This commit is contained in:
parent
755053d7e9
commit
8a7134f727
|
@ -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"]
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# app/models/schemas.py
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
class TextInput(BaseModel):
|
||||
|
|
Loading…
Reference in New Issue