Spaces:
Running
Running
Update app.py
Browse files
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.
|
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
|