data_load_state = st.text('Loading data...')
data = load_data()
data_load_state.text("")
This sets the title of the page and gives some text to display while the data is loading, which it then removes once the data has loaded.
Adding user controls to our application
Now let's set up some controls for our user to filter the data. Add the following to your app.py file below the existing code.
```python
st.subheader('Choose filters')
city_options = list(set(data['city']))
rooms_filter = st.slider('Number of rooms', 1.0, 10.0, (1.0, 10.0), step=0.5)
cities_filter = st.multiselect('Cities', city_options, default=['Bern'])
```
This sets up some user controls. A slider for the user to set the min and max number of rooms. We specify that the user can select between 1 and 10 rooms and we set the default to include all sizes (1-10).
