Spaces:
Running
on
L4
Running
on
L4
Ahmet Kaan Sever
commited on
Commit
·
976ac39
1
Parent(s):
a18754a
Changed loop type to asyncio
Browse files- Dockerfile +1 -1
- app.py +1 -1
Dockerfile
CHANGED
@@ -13,4 +13,4 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
COPY --chown=user . /app
|
16 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
COPY --chown=user . /app
|
16 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--loop", "asyncio"]
|
app.py
CHANGED
@@ -37,4 +37,4 @@ async def health_check():
|
|
37 |
|
38 |
|
39 |
if __name__ == "__main__":
|
40 |
-
uvicorn.run(app, host="0.0.0.0", port=8080)
|
|
|
37 |
|
38 |
|
39 |
if __name__ == "__main__":
|
40 |
+
uvicorn.run(app, host="0.0.0.0", port=8080, loop="asyncio")
|