Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ def test_ml_model(longitude, latitude, housing_median_age, total_rooms, total_be
|
|
25 |
|
26 |
result = loaded_model.predict(features)
|
27 |
if result['dense'][0][0] > 0.5:
|
28 |
-
return 'Houses in this neighborhood above average price'
|
29 |
-
return 'Houses in this neighborhood below average price'
|
30 |
|
31 |
demo = gr.Interface(fn=test_ml_model,
|
32 |
inputs=[gr.Number(value=0.0), gr.Number(value=0.0), gr.Number(value=0.0),
|
|
|
25 |
|
26 |
result = loaded_model.predict(features)
|
27 |
if result['dense'][0][0] > 0.5:
|
28 |
+
return 'Prediction: Houses in this neighborhood are above average price.'
|
29 |
+
return 'Prediction: Houses in this neighborhood are below average price.'
|
30 |
|
31 |
demo = gr.Interface(fn=test_ml_model,
|
32 |
inputs=[gr.Number(value=0.0), gr.Number(value=0.0), gr.Number(value=0.0),
|