MeysamSh commited on
Commit
0b7d521
·
1 Parent(s): 5a0698a

change port

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. 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=8000)
 
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
- - "8000:8000"
8
  volumes:
9
  - .:/app
10
- command: uvicorn main:app --host 0.0.0.0 --port 8000
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