logeswari commited on
Commit
aca9ade
·
1 Parent(s): 0fd4103
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app.py +1 -1
Dockerfile CHANGED
@@ -6,6 +6,6 @@ COPY . /app
6
 
7
  RUN pip install --no-cache-dir fastapi uvicorn pandas pydantic
8
 
9
- EXPOSE 8000
10
 
11
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
6
 
7
  RUN pip install --no-cache-dir fastapi uvicorn pandas pydantic
8
 
9
+ EXPOSE 7860
10
 
11
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
app.py CHANGED
@@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
18
 
19
  app = FastAPI()
20
 
21
- file_path = "D:/pandas/world_population (1).csv"
22
 
23
  try:
24
  countries_df = pd.read_csv(file_path)
 
18
 
19
  app = FastAPI()
20
 
21
+ file_path = "D:/backend1/world_population.csv"
22
 
23
  try:
24
  countries_df = pd.read_csv(file_path)