Upload app.py
Browse files
app.py
CHANGED
@@ -711,8 +711,8 @@ with gr.Blocks(title="Math Solution Classifier", theme=gr.themes.Soft()) as app:
|
|
711 |
gr.Markdown("# 🧮 Math Solution Classifier")
|
712 |
gr.Markdown(
|
713 |
"Classify math solutions as **correct**, **conceptually flawed**, or **computationally flawed**. "
|
714 |
-
"Live status updates appear below as the two-stage pipeline runs."
|
715 |
-
"Press 'Surprise me' to randomly select a sample question/answer pair from our dataset."
|
716 |
)
|
717 |
|
718 |
# Per-session state
|
@@ -750,25 +750,25 @@ with gr.Blocks(title="Math Solution Classifier", theme=gr.themes.Soft()) as app:
|
|
750 |
gr.Examples(
|
751 |
examples=[
|
752 |
["John has three apples and Mary has seven, how many apples do they have together?",
|
753 |
-
"They have 7 + 3 = 11 apples
|
754 |
"Computationally flawed"],
|
755 |
["A rectangle's length is twice its width. If the width is 7 cm, what is the perimeter of the rectangle?",
|
756 |
-
"The length of the rectangle is 2 * 7 = 14 cm.\n The perimeter is 14 + 7 = 21 cm.\n
|
757 |
"Conceptually flawed"],
|
758 |
["A tank holds 60 liters of fuel. A generator uses fuel at a rate of 5 liters per hour. After running for 9 hours, how many liters are still in the tank?",
|
759 |
"The generator uses 5 L/h × 9 h = 45 L of fuel in 9 hours.\n Then, there remain 60 L + 45 L = 105 L in the tank.\n Final answer: 105 L",
|
760 |
"Conceptually flawed"],
|
761 |
["What is 15% of 200?",
|
762 |
-
"15% = 15/100 = 0.15\n0.15 × 200 = 30",
|
763 |
"Correct"],
|
764 |
["A circle has a radius of 5 cm. Using the approximation pi = 3.14, what is the circumference of the circle?",
|
765 |
-
"The circumference of the circle is 3.14 * 5 = 15.7 cm.\n
|
766 |
"Conceptually flawed"],
|
767 |
["Emily is saving for a bicycle that costs $250. She saves $15 each week from her allowance. She also received $40 for her birthday to put towards the bike. How many weeks will it take her to save enough money?",
|
768 |
-
"The amount Emily still needs to save is $250 - $40 = $210.\n The number of weeks it will take her to save is 210 / 15 = 12.\n
|
769 |
"Computationally flawed"],
|
770 |
["A 24-meter rope is cut into 6 equal pieces. A climber uses 2 of those pieces. How many meters of rope are still unused?",
|
771 |
-
"The length of each piece is 24 / 6 = 4 m.\n The climber uses 2 × 4 m = 8 m of rope.\n There are 24 m − 8 m = 16 m of rope still unused
|
772 |
"Correct"]
|
773 |
],
|
774 |
inputs=[question_input, solution_input, expected_label_example],
|
|
|
711 |
gr.Markdown("# 🧮 Math Solution Classifier")
|
712 |
gr.Markdown(
|
713 |
"Classify math solutions as **correct**, **conceptually flawed**, or **computationally flawed**. "
|
714 |
+
"Live status updates appear below as the two-stage pipeline runs. "
|
715 |
+
" \n Press 'Surprise me' to randomly select a sample question/answer pair from our dataset."
|
716 |
)
|
717 |
|
718 |
# Per-session state
|
|
|
750 |
gr.Examples(
|
751 |
examples=[
|
752 |
["John has three apples and Mary has seven, how many apples do they have together?",
|
753 |
+
"They have 7 + 3 = 11 apples.\n Final answer: 11",
|
754 |
"Computationally flawed"],
|
755 |
["A rectangle's length is twice its width. If the width is 7 cm, what is the perimeter of the rectangle?",
|
756 |
+
"The length of the rectangle is 2 * 7 = 14 cm.\n The perimeter is 14 + 7 = 21 cm.\n Final answer: 21",
|
757 |
"Conceptually flawed"],
|
758 |
["A tank holds 60 liters of fuel. A generator uses fuel at a rate of 5 liters per hour. After running for 9 hours, how many liters are still in the tank?",
|
759 |
"The generator uses 5 L/h × 9 h = 45 L of fuel in 9 hours.\n Then, there remain 60 L + 45 L = 105 L in the tank.\n Final answer: 105 L",
|
760 |
"Conceptually flawed"],
|
761 |
["What is 15% of 200?",
|
762 |
+
"15% = 15/100 = 0.15\n0.15 × 200 = 30\n Final answer: 30",
|
763 |
"Correct"],
|
764 |
["A circle has a radius of 5 cm. Using the approximation pi = 3.14, what is the circumference of the circle?",
|
765 |
+
"The circumference of the circle is 3.14 * 5 = 15.7 cm.\n Final answer: 15.7",
|
766 |
"Conceptually flawed"],
|
767 |
["Emily is saving for a bicycle that costs $250. She saves $15 each week from her allowance. She also received $40 for her birthday to put towards the bike. How many weeks will it take her to save enough money?",
|
768 |
+
"The amount Emily still needs to save is $250 - $40 = $210.\n The number of weeks it will take her to save is 210 / 15 = 12.\n Final answer: 12",
|
769 |
"Computationally flawed"],
|
770 |
["A 24-meter rope is cut into 6 equal pieces. A climber uses 2 of those pieces. How many meters of rope are still unused?",
|
771 |
+
"The length of each piece is 24 / 6 = 4 m.\n The climber uses 2 × 4 m = 8 m of rope.\n There are 24 m − 8 m = 16 m of rope still unused.\n Final answer: 16",
|
772 |
"Correct"]
|
773 |
],
|
774 |
inputs=[question_input, solution_input, expected_label_example],
|