merge complete
This commit is contained in:
commit
7507a56237
0
controllers/controller.py
Normal file
0
controllers/controller.py
Normal file
0
requirements.txt
Normal file
0
requirements.txt
Normal file
22
schemas/schemas.py
Normal file
22
schemas/schemas.py
Normal file
@ -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
|
0
services/service.py
Normal file
0
services/service.py
Normal file
Loading…
Reference in New Issue
Block a user