Elfsong commited on
Commit
4395c46
·
1 Parent(s): 1d3cfff
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ if "problem" in st.query_params:
12
  ds = load_dataset("Elfsong/leetcode_data", split='train')
13
 
14
  if st.button("Back"):
15
- del st.session_state['problem']
16
 
17
  else:
18
  with st.spinner("Loading data...", show_time=True):
 
12
  ds = load_dataset("Elfsong/leetcode_data", split='train')
13
 
14
  if st.button("Back"):
15
+ del st.query_params['problem']
16
 
17
  else:
18
  with st.spinner("Loading data...", show_time=True):