Spaces:
Sleeping
Sleeping
Duy commited on
Commit ·
780c453
1
Parent(s): f220f35
change port
Browse files- Dockerfile +1 -1
- api.py +1 -1
Dockerfile
CHANGED
|
@@ -15,7 +15,7 @@ COPY . /app
|
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
| 17 |
# Make port available to the world outside this container
|
| 18 |
-
EXPOSE
|
| 19 |
|
| 20 |
# Run your FastAPI app
|
| 21 |
CMD ["python", "api.py"]
|
|
|
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
| 17 |
# Make port available to the world outside this container
|
| 18 |
+
EXPOSE 7860
|
| 19 |
|
| 20 |
# Run your FastAPI app
|
| 21 |
CMD ["python", "api.py"]
|
api.py
CHANGED
|
@@ -51,4 +51,4 @@ async def predict(file: UploadFile):
|
|
| 51 |
|
| 52 |
if __name__ == "__main__":
|
| 53 |
import uvicorn
|
| 54 |
-
uvicorn.run(api, host ="0.0.0.0" ,port=
|
|
|
|
| 51 |
|
| 52 |
if __name__ == "__main__":
|
| 53 |
import uvicorn
|
| 54 |
+
uvicorn.run(api, host ="0.0.0.0" ,port=7860)
|