diff --git a/controllers/controller.py b/controllers/controller.py new file mode 100644 index 0000000..e69de29 diff --git a/models.py b/models/models.py similarity index 100% rename from models.py rename to models/models.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/schemas.py b/schemas.py deleted file mode 100644 index a19e9b2..0000000 --- a/schemas.py +++ /dev/null @@ -1,19 +0,0 @@ -from pydantic import BaseModel - -class LaptopBase(BaseModel): - title: str - price: float - processor: str - ram: int - ssd: int - display: float - -class LaptopCreate(LaptopBase): - price: float - -class LaptopResponse(LaptopBase): - id: int - price: float - - class Config: - orm_mode = True diff --git a/schemas/schemas.py b/schemas/schemas.py new file mode 100644 index 0000000..39a2b85 --- /dev/null +++ b/schemas/schemas.py @@ -0,0 +1,22 @@ +from pydantic import BaseModel + +class LaptopCreate(BaseModel): + processor: str + ram: int + os: str + ssd: int + display: float + +class LaptopResponse(BaseModel): + id: int + processor: str + ram: int + os: str + ssd: int + display: float + + class Config: + orm_mode = True + +class PredictPriceResponse(BaseModel): + predicted_price: float diff --git a/modelBuilder.py b/services/modelBuilder.py similarity index 100% rename from modelBuilder.py rename to services/modelBuilder.py diff --git a/services/service.py b/services/service.py new file mode 100644 index 0000000..e69de29