Puree commited on
Commit
394db98
1 Parent(s): 2ba39b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,8 +21,8 @@ def main():
21
  st.title("Water usage in town predict")
22
  with st.form("questionaire"):
23
  Land_use = st.selectbox("Land use",options = unique_LANDUSE_TYPE)
24
- User = st.selectbox("Gender",options = unique_USER)
25
- Month = st.selectbox("Hypertension",options = unique_Month)
26
  pipe_diam = st.slider("pipe diam",min_value=0, max_value=10)
27
  clicked = st.form_submit_button("Predict income")
28
  if clicked:
@@ -30,7 +30,7 @@ def main():
30
  "USER": [User],
31
  "Month": [Month],
32
  "PIPE DIAM": [pipe_diam]}))
33
- str_result = str(result)
34
  st.success("Water usage predict value:"+str_result+"cubic meters")
35
  if __name__ == '__main__':
36
  main()
 
21
  st.title("Water usage in town predict")
22
  with st.form("questionaire"):
23
  Land_use = st.selectbox("Land use",options = unique_LANDUSE_TYPE)
24
+ User = st.selectbox("User",options = unique_USER)
25
+ Month = st.selectbox("Month",options = unique_Month)
26
  pipe_diam = st.slider("pipe diam",min_value=0, max_value=10)
27
  clicked = st.form_submit_button("Predict income")
28
  if clicked:
 
30
  "USER": [User],
31
  "Month": [Month],
32
  "PIPE DIAM": [pipe_diam]}))
33
+ str_result = str(result).strip()
34
  st.success("Water usage predict value:"+str_result+"cubic meters")
35
  if __name__ == '__main__':
36
  main()