Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def predictPrice(input1, input2, input3, input4, input5, input6, input7, input8)
|
|
| 14 |
features = np.array([[input1, input2, input3, input4, input5, input6, input7, input8]])
|
| 15 |
features_scaled = scaler.transform(features)
|
| 16 |
prediction = KNN_Regressor.predict(features_scaled)
|
| 17 |
-
return prediction.item()
|
| 18 |
|
| 19 |
|
| 20 |
## Buidling inputs and outputs:
|
|
|
|
| 14 |
features = np.array([[input1, input2, input3, input4, input5, input6, input7, input8]])
|
| 15 |
features_scaled = scaler.transform(features)
|
| 16 |
prediction = KNN_Regressor.predict(features_scaled)
|
| 17 |
+
return round(prediction.item(), 2)
|
| 18 |
|
| 19 |
|
| 20 |
## Buidling inputs and outputs:
|