Spaces:
Sleeping
Sleeping
updated names
Browse files- app.py +1 -1
- dockerfile +1 -1
app.py
CHANGED
|
@@ -95,4 +95,4 @@ async def predictRoute(payload: ImagePayload):
|
|
| 95 |
# --- RUN THE APP ---
|
| 96 |
# This block is for local development. Gunicorn/Uvicorn will run the app in production.
|
| 97 |
if __name__ == "__main__":
|
| 98 |
-
uvicorn.run(app, host="0.0.0.0", port=
|
|
|
|
| 95 |
# --- RUN THE APP ---
|
| 96 |
# This block is for local development. Gunicorn/Uvicorn will run the app in production.
|
| 97 |
if __name__ == "__main__":
|
| 98 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
dockerfile
CHANGED
|
@@ -26,4 +26,4 @@ RUN mkdir model
|
|
| 26 |
COPY artifacts/training/best_model.h5 ./model/
|
| 27 |
COPY --chown=user . /app
|
| 28 |
EXPOSE 8080
|
| 29 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 26 |
COPY artifacts/training/best_model.h5 ./model/
|
| 27 |
COPY --chown=user . /app
|
| 28 |
EXPOSE 8080
|
| 29 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|