Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,9 +29,11 @@ def compute_reliability(std_pred: float):
|
|
| 29 |
print(std_set)
|
| 30 |
print(std_pred)
|
| 31 |
if std_pred < std_set:
|
| 32 |
-
|
| 33 |
else:
|
| 34 |
ct-=1
|
|
|
|
|
|
|
| 35 |
|
| 36 |
def predict_price(date: datetime ,room_count: int, address:str, surface: float , property_type: str ):
|
| 37 |
date = int(datetime.timestamp(date))
|
|
|
|
| 29 |
print(std_set)
|
| 30 |
print(std_pred)
|
| 31 |
if std_pred < std_set:
|
| 32 |
+
reliability = ct
|
| 33 |
else:
|
| 34 |
ct-=1
|
| 35 |
+
reliability = ct
|
| 36 |
+
return reliability
|
| 37 |
|
| 38 |
def predict_price(date: datetime ,room_count: int, address:str, surface: float , property_type: str ):
|
| 39 |
date = int(datetime.timestamp(date))
|