Spaces:
Build error
Build error
Enoch Jason J
commited on
Commit
·
b5723ae
1
Parent(s):
43232ea
Changed main to app
Browse files- Dockerfile +2 -2
- main.py → app.py +0 -0
Dockerfile
CHANGED
|
@@ -20,7 +20,7 @@ RUN --mount=type=cache,target=/root/.cache/huggingface \
|
|
| 20 |
HUGGING_FACE_HUB_TOKEN=${HUGGING_FACE_HUB_TOKEN} python download_models.py
|
| 21 |
|
| 22 |
# Copy the main application code
|
| 23 |
-
COPY
|
| 24 |
|
| 25 |
# IMPORTANT: If your LoRA adapter is a local folder, you need to copy it in.
|
| 26 |
# For example:
|
|
@@ -31,5 +31,5 @@ COPY main.py .
|
|
| 31 |
EXPOSE 8000
|
| 32 |
|
| 33 |
# Command to run the application
|
| 34 |
-
CMD ["uvicorn", "
|
| 35 |
|
|
|
|
| 20 |
HUGGING_FACE_HUB_TOKEN=${HUGGING_FACE_HUB_TOKEN} python download_models.py
|
| 21 |
|
| 22 |
# Copy the main application code
|
| 23 |
+
COPY app.py .
|
| 24 |
|
| 25 |
# IMPORTANT: If your LoRA adapter is a local folder, you need to copy it in.
|
| 26 |
# For example:
|
|
|
|
| 31 |
EXPOSE 8000
|
| 32 |
|
| 33 |
# Command to run the application
|
| 34 |
+
CMD ["uvicorn", "app:app", "--host", "0._0.0.0", "--port", "8000"]
|
| 35 |
|
main.py → app.py
RENAMED
|
File without changes
|