Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,10 @@ def main():
|
|
27 |
# clicked==True only when the button is clicked
|
28 |
clicked = st.form_submit_button("Predict income")
|
29 |
if clicked:
|
30 |
-
result=model.predict(pd.DataFrame({"
|
31 |
-
"
|
32 |
-
"
|
33 |
-
"
|
34 |
# Show prediction
|
35 |
st.success("Water usage predict value:",result)
|
36 |
if __name__ == '__main__':
|
|
|
27 |
# clicked==True only when the button is clicked
|
28 |
clicked = st.form_submit_button("Predict income")
|
29 |
if clicked:
|
30 |
+
result=model.predict(pd.DataFrame({"LANDUSE_TYPE": [Land_use],
|
31 |
+
"USER": [User],
|
32 |
+
"MONTH": [Month],
|
33 |
+
"PIPE DIAM": [pipe_diam]}))
|
34 |
# Show prediction
|
35 |
st.success("Water usage predict value:",result)
|
36 |
if __name__ == '__main__':
|