File size: 414 Bytes
ecf3beb
 
 
ca8fbc6
 
 
 
 
ecf3beb
ca8fbc6
 
 
 
 
 
 
ecf3beb
 
ca8fbc6
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import streamlit as st


def show_main_settings():
    st.write(f'Hi {st.session_state.query_params}')


def run_dash():
    query_params = st.experimental_get_query_params()
    st.session_state.query_params = query_params

    if 'id' in query_params:
        show_main_settings()
    else:
        st.write('Malformed URL, missing id.')
        st.write(query_params)


if __name__ == '__main__':
    run_dash()