Uvicorn: disable lifespan to avoid CancelledError on startup in Spaces
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -82,4 +82,4 @@ RUN if [ -d "/code/yarngpt" ] && [ -f "/code/yarngpt/audiotokenizer.py" ]; then
|
|
| 82 |
|
| 83 |
EXPOSE 7860
|
| 84 |
|
| 85 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 82 |
|
| 83 |
EXPOSE 7860
|
| 84 |
|
| 85 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--lifespan", "off"]
|