Skip to content

Commit

Permalink
Update Dockerfile and main.py imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sahi-mfg committed Jan 2, 2024
1 parent e91d052 commit 6ab636b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ RUN apt-get -y update && \
COPY requirements.txt .
RUN pip3 install -r requirements.txt

CMD ["uvicorn","main:app", "--port","5001", "--host","0.0.0.0"]
CMD ["uvicorn","app.main:app", "--port","5001", "--host","0.0.0.0"]
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import uvicorn
from fastapi import FastAPI, File, HTTPException, UploadFile
from model import load_model, predict, prepare_image
from .model import load_model, predict, prepare_image
from PIL import Image
from pydantic import BaseModel

Expand Down

0 comments on commit 6ab636b

Please sign in to comment.