Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -91,13 +91,14 @@ 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
|
98 |
|
99 |
|
100 |
# Prompt options
|
|
|
101 |
use_cot = st.toggle("Use Chain-of-Thought Prompt")
|
102 |
model_choice = st.selectbox("Choose a model:", list(all_models.keys()))
|
103 |
model_path = all_models[model_choice]
|
|
|
91 |
|
92 |
if st.button("🎲 Pick Random Question"):
|
93 |
question_index = random.randint(0, len(gsm8k_data) - 1)
|
94 |
+
st.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
|
98 |
|
99 |
|
100 |
# Prompt options
|
101 |
+
st.write('##')
|
102 |
use_cot = st.toggle("Use Chain-of-Thought Prompt")
|
103 |
model_choice = st.selectbox("Choose a model:", list(all_models.keys()))
|
104 |
model_path = all_models[model_choice]
|