Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import pandas as pd
|
|
| 4 |
|
| 5 |
def get_market_submarket(df, google_ola):
|
| 6 |
filtered_row = df[df['google_ola'] == google_ola].iloc[0]
|
| 7 |
-
return filtered_row['rent_combined'], filtered_row['building_sf'], filtered_row['market_costar'], filtered_row['submarket_costar']
|
| 8 |
|
| 9 |
def main():
|
| 10 |
st.set_page_config(initial_sidebar_state="collapsed", layout="wide")
|
|
@@ -21,8 +21,10 @@ def main():
|
|
| 21 |
|
| 22 |
if 'user_select_value' not in st.session_state:
|
| 23 |
st.session_state['user_select_value'] = ""
|
| 24 |
-
if '
|
| 25 |
-
st.session_state['
|
|
|
|
|
|
|
| 26 |
if 'execution_dates' not in st.session_state:
|
| 27 |
st.session_state['execution_dates'] = 2014
|
| 28 |
if 'LSF' not in st.session_state:
|
|
@@ -82,10 +84,11 @@ def main():
|
|
| 82 |
st.session_state['user_select_value'] = selected_option
|
| 83 |
|
| 84 |
st.session_state['execution_dates'] = 2014
|
| 85 |
-
prediction,
|
| 86 |
st.session_state['market_val'] = market_val
|
| 87 |
st.session_state['submarket_val'] = submarket_val
|
| 88 |
-
st.session_state['
|
|
|
|
| 89 |
st.session_state['prediction'] = prediction
|
| 90 |
|
| 91 |
st.switch_page("pages/market_rent_estimation.py")
|
|
|
|
| 4 |
|
| 5 |
def get_market_submarket(df, google_ola):
|
| 6 |
filtered_row = df[df['google_ola'] == google_ola].iloc[0]
|
| 7 |
+
return filtered_row['rent_combined'], filtered_row['building_sf'], filtered_row['rented_sf'], filtered_row['market_costar'], filtered_row['submarket_costar']
|
| 8 |
|
| 9 |
def main():
|
| 10 |
st.set_page_config(initial_sidebar_state="collapsed", layout="wide")
|
|
|
|
| 21 |
|
| 22 |
if 'user_select_value' not in st.session_state:
|
| 23 |
st.session_state['user_select_value'] = ""
|
| 24 |
+
if 'building_sf' not in st.session_state:
|
| 25 |
+
st.session_state['building_sf'] = 0
|
| 26 |
+
if 'rented_sf' not in st.session_state:
|
| 27 |
+
st.session_state['rented_sf'] = 0
|
| 28 |
if 'execution_dates' not in st.session_state:
|
| 29 |
st.session_state['execution_dates'] = 2014
|
| 30 |
if 'LSF' not in st.session_state:
|
|
|
|
| 84 |
st.session_state['user_select_value'] = selected_option
|
| 85 |
|
| 86 |
st.session_state['execution_dates'] = 2014
|
| 87 |
+
prediction, building_sf, rented_sf, market_val, submarket_val = get_market_submarket(df_properties, selected_option)
|
| 88 |
st.session_state['market_val'] = market_val
|
| 89 |
st.session_state['submarket_val'] = submarket_val
|
| 90 |
+
st.session_state['building_sf'] = building_sf
|
| 91 |
+
st.session_state['rented_sf'] = rented_sf
|
| 92 |
st.session_state['prediction'] = prediction
|
| 93 |
|
| 94 |
st.switch_page("pages/market_rent_estimation.py")
|