Spaces:
Sleeping
Sleeping
Dockerfile fix
Browse files- Dockerfile +1 -1
- requirements.txt +3 -1
Dockerfile
CHANGED
|
@@ -46,4 +46,4 @@ RUN python -c "from transformers import AutoTokenizer; \
|
|
| 46 |
EXPOSE ${APP_PORT}
|
| 47 |
|
| 48 |
# Run FastAPI app with Uvicorn
|
| 49 |
-
CMD ["
|
|
|
|
| 46 |
EXPOSE ${APP_PORT}
|
| 47 |
|
| 48 |
# Run FastAPI app with Uvicorn
|
| 49 |
+
CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port $APP_PORT"]
|
requirements.txt
CHANGED
|
@@ -2,4 +2,6 @@ fastapi
|
|
| 2 |
uvicorn
|
| 3 |
python-dotenv
|
| 4 |
pydantic
|
| 5 |
-
httpx
|
|
|
|
|
|
|
|
|
| 2 |
uvicorn
|
| 3 |
python-dotenv
|
| 4 |
pydantic
|
| 5 |
+
httpx
|
| 6 |
+
transformers
|
| 7 |
+
sentencepiece
|