Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,36 +31,34 @@ def main():
|
|
| 31 |
|
| 32 |
|
| 33 |
# Checkbox
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
col_2_1, col_2_2 = st.columns([1, 4])
|
| 36 |
with col_2_1:
|
| 37 |
-
|
| 38 |
with col_2_2:
|
| 39 |
-
if
|
| 40 |
-
option1_text_input_value = st.text_input("
|
| 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 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 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()
|