Spaces:
Sleeping
Sleeping
Vela
commited on
Commit
Β·
91a458d
1
Parent(s):
dfc542c
added few changes
Browse files- Dockerfile +1 -1
- {api β backend/api}/__pycache__/__init__.cpython-312.pyc +0 -0
- {api β backend/api}/__pycache__/end_points.cpython-312.pyc +0 -0
- {api β backend/api}/__pycache__/main.cpython-312.pyc +0 -0
- {api β backend/api}/__pycache__/models.cpython-312.pyc +0 -0
- {api β backend/api}/__pycache__/schema.cpython-312.pyc +0 -0
- {api β backend/api}/end_points.py +0 -0
- {api β backend/api}/main.py +1 -1
- {api β backend/api}/schema.py +0 -0
- {data β backend/data}/world_population.csv +0 -0
- {modules β backend/modules}/__pycache__/__init__.cpython-312.pyc +0 -0
- {modules β backend/modules}/__pycache__/home_page.cpython-312.pyc +0 -0
- {modules β backend/modules}/home_page.py +1 -1
- {utils β backend/utils}/__pycache__/__init__.cpython-312.pyc +0 -0
- {utils β backend/utils}/__pycache__/logger.cpython-312.pyc +0 -0
- {utils β backend/utils}/logger.py +0 -0
Dockerfile
CHANGED
@@ -27,4 +27,4 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
27 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
28 |
|
29 |
COPY --chown=user . /app
|
30 |
-
CMD ["
|
|
|
27 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
28 |
|
29 |
COPY --chown=user . /app
|
30 |
+
CMD ["fastapi","run" "backend/api/main.py", "--host", "0.0.0.0", "--port", "7860"]
|
{api β backend/api}/__pycache__/__init__.cpython-312.pyc
RENAMED
File without changes
|
{api β backend/api}/__pycache__/end_points.cpython-312.pyc
RENAMED
File without changes
|
{api β backend/api}/__pycache__/main.cpython-312.pyc
RENAMED
Binary files a/api/__pycache__/main.cpython-312.pyc and b/backend/api/__pycache__/main.cpython-312.pyc differ
|
|
{api β backend/api}/__pycache__/models.cpython-312.pyc
RENAMED
File without changes
|
{api β backend/api}/__pycache__/schema.cpython-312.pyc
RENAMED
File without changes
|
{api β backend/api}/end_points.py
RENAMED
File without changes
|
{api β backend/api}/main.py
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
import os
|
3 |
import sys
|
4 |
-
src_directory = os.path.abspath(os.path.join(os.path.dirname(__file__), "../..", "
|
5 |
sys.path.append(src_directory)
|
6 |
from modules import home_page
|
7 |
from api.schema import CountryDetails
|
|
|
1 |
from fastapi import FastAPI
|
2 |
import os
|
3 |
import sys
|
4 |
+
src_directory = os.path.abspath(os.path.join(os.path.dirname(__file__), "../..", "backend"))
|
5 |
sys.path.append(src_directory)
|
6 |
from modules import home_page
|
7 |
from api.schema import CountryDetails
|
{api β backend/api}/schema.py
RENAMED
File without changes
|
{data β backend/data}/world_population.csv
RENAMED
File without changes
|
{modules β backend/modules}/__pycache__/__init__.cpython-312.pyc
RENAMED
File without changes
|
{modules β backend/modules}/__pycache__/home_page.cpython-312.pyc
RENAMED
Binary files a/modules/__pycache__/home_page.cpython-312.pyc and b/backend/modules/__pycache__/home_page.cpython-312.pyc differ
|
|
{modules β backend/modules}/home_page.py
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
import pandas as pd
|
2 |
import os
|
3 |
import sys
|
4 |
-
src_directory = os.path.abspath(os.path.join(os.path.dirname(__file__), "../..", "
|
5 |
sys.path.append(src_directory)
|
6 |
from utils import logger
|
7 |
|
|
|
1 |
import pandas as pd
|
2 |
import os
|
3 |
import sys
|
4 |
+
src_directory = os.path.abspath(os.path.join(os.path.dirname(__file__), "../..", "backend"))
|
5 |
sys.path.append(src_directory)
|
6 |
from utils import logger
|
7 |
|
{utils β backend/utils}/__pycache__/__init__.cpython-312.pyc
RENAMED
File without changes
|
{utils β backend/utils}/__pycache__/logger.cpython-312.pyc
RENAMED
File without changes
|
{utils β backend/utils}/logger.py
RENAMED
File without changes
|