jonathantiedchen commited on
Commit
c66f94f
·
verified ·
1 Parent(s): ceb0da0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ question_index = st.selectbox("🔢 Select GSM8K question index", range(len(gsm8
91
 
92
  if st.button("🎲 Pick Random Question"):
93
  question_index = random.randint(0, len(gsm8k_data) - 1)
94
- st.experimental_set_query_params(question_index=question_index)
95
 
96
  default_prompt = "Jasper has 5 apples and eats 2 of them. How many apples does he have left?"
97
  selected_question = gsm8k_data[question_index]["question"] if question_index is not None else default_prompt
 
91
 
92
  if st.button("🎲 Pick Random Question"):
93
  question_index = random.randint(0, len(gsm8k_data) - 1)
94
+ st.query_params.update(question_index=question_index)
95
 
96
  default_prompt = "Jasper has 5 apples and eats 2 of them. How many apples does he have left?"
97
  selected_question = gsm8k_data[question_index]["question"] if question_index is not None else default_prompt