Borya-Goldarb commited on
Commit
3aa4bc2
·
verified ·
1 Parent(s): 2de689e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -23
app.py CHANGED
@@ -31,36 +31,34 @@ def main():
31
 
32
 
33
  # Checkbox
34
- # option1 = st.checkbox("Functionality problems", value=False)
 
 
 
 
 
35
  col_2_1, col_2_2 = st.columns([1, 4])
36
  with col_2_1:
37
- option1 = st.checkbox("Functionality problems", value=False)
38
  with col_2_2:
39
- if option1:
40
- option1_text_input_value = st.text_input("Text Box")
41
-
42
- option2 = st.checkbox("Special tax area", value=False)
43
  # special parameters free text
44
  user_input = st.text_input("Enter special parameters of the building:")
45
 
46
  if st.button("Submit"):
47
-
48
- st.session_state['user_select_value'] = selected_option
49
- st.session_state['year_buit'] = 1990
50
- st.session_state['execution_dates'] = 2014
51
- market_val, submarket_val = get_market_submarket(df_properties, selected_option)
52
- st.session_state['market_val'] = market_val
53
- st.session_state['submarket_val'] = submarket_val
54
-
55
- st.switch_page("pages/market_rent_estimation.py")
56
-
57
-
58
- # if st.button("Home"):
59
- # st.switch_page("app.py")
60
- # if st.button("Page 1"):
61
- # st.switch_page("pages/page_1.py")
62
- # if st.button("Page 2"):
63
- # st.switch_page("pages/page_2.py")
64
 
65
  if __name__ == "__main__":
66
  main()
 
31
 
32
 
33
  # Checkbox
34
+ col_1_1, col_1_2 = st.columns([1, 4])
35
+ with col_1_1:
36
+ option1 = st.checkbox("Functionality problems", value=False)
37
+ with col_1_2:
38
+ if option1:
39
+ option1_text_input_value = st.text_input("Functionality problems description")
40
  col_2_1, col_2_2 = st.columns([1, 4])
41
  with col_2_1:
42
+ option2 = st.checkbox("Special tax area", value=False)
43
  with col_2_2:
44
+ if option2:
45
+ option1_text_input_value = st.text_input("Special tax area description")
46
+ # option2 = st.checkbox("Special tax area", value=False)
 
47
  # special parameters free text
48
  user_input = st.text_input("Enter special parameters of the building:")
49
 
50
  if st.button("Submit"):
51
+ if selected_option == ""
52
+ st.write("Please choose the property address")
53
+ else:
54
+ st.session_state['user_select_value'] = selected_option
55
+ st.session_state['year_buit'] = 1990
56
+ st.session_state['execution_dates'] = 2014
57
+ market_val, submarket_val = get_market_submarket(df_properties, selected_option)
58
+ st.session_state['market_val'] = market_val
59
+ st.session_state['submarket_val'] = submarket_val
60
+
61
+ st.switch_page("pages/market_rent_estimation.py")
 
 
 
 
 
 
62
 
63
  if __name__ == "__main__":
64
  main()