Spaces:
Sleeping
Sleeping
refactor: update RentalFeatures model to make fields mandatory
Browse files
app.py
CHANGED
|
@@ -53,18 +53,18 @@ app = FastAPI(
|
|
| 53 |
|
| 54 |
|
| 55 |
class RentalFeatures(BaseModel):
|
| 56 |
-
mileage: int
|
| 57 |
-
engine_power: int
|
| 58 |
-
fuel: str
|
| 59 |
-
paint_color: str
|
| 60 |
-
car_type: str
|
| 61 |
-
private_parking_available: int
|
| 62 |
-
has_gps: int
|
| 63 |
-
has_air_conditioning: int
|
| 64 |
-
automatic_car: int
|
| 65 |
-
has_getaround_connect: int
|
| 66 |
-
has_speed_regulator: int
|
| 67 |
-
winter_tires: int
|
| 68 |
|
| 69 |
|
| 70 |
@app.get("/")
|
|
|
|
| 53 |
|
| 54 |
|
| 55 |
class RentalFeatures(BaseModel):
|
| 56 |
+
mileage: int
|
| 57 |
+
engine_power: int
|
| 58 |
+
fuel: str
|
| 59 |
+
paint_color: str
|
| 60 |
+
car_type: str
|
| 61 |
+
private_parking_available: int
|
| 62 |
+
has_gps: int
|
| 63 |
+
has_air_conditioning: int
|
| 64 |
+
automatic_car: int
|
| 65 |
+
has_getaround_connect: int
|
| 66 |
+
has_speed_regulator: int
|
| 67 |
+
winter_tires: int
|
| 68 |
|
| 69 |
|
| 70 |
@app.get("/")
|