change port
Browse files- app.py +1 -1
- docker-compose.yml +2 -2
app.py
CHANGED
|
@@ -192,4 +192,4 @@ async def predict(files: List[UploadFile] = File(...)):
|
|
| 192 |
nest_asyncio.apply()
|
| 193 |
import uvicorn
|
| 194 |
|
| 195 |
-
uvicorn.run(app, host="0.0.0.0", port=
|
|
|
|
| 192 |
nest_asyncio.apply()
|
| 193 |
import uvicorn
|
| 194 |
|
| 195 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
docker-compose.yml
CHANGED
|
@@ -4,10 +4,10 @@ services:
|
|
| 4 |
backend:
|
| 5 |
build: .
|
| 6 |
ports:
|
| 7 |
-
- "
|
| 8 |
volumes:
|
| 9 |
- .:/app
|
| 10 |
-
command: uvicorn
|
| 11 |
|
| 12 |
frontend:
|
| 13 |
image: nginx:alpine
|
|
|
|
| 4 |
backend:
|
| 5 |
build: .
|
| 6 |
ports:
|
| 7 |
+
- "7860:7860"
|
| 8 |
volumes:
|
| 9 |
- .:/app
|
| 10 |
+
command: uvicorn app:app --host 0.0.0.0 --port 7860
|
| 11 |
|
| 12 |
frontend:
|
| 13 |
image: nginx:alpine
|