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/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