mcamargo00 commited on
Commit
b5f8cf5
·
verified ·
1 Parent(s): bca1a04

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -712,6 +712,7 @@ with gr.Blocks(title="Math Solution Classifier", theme=gr.themes.Soft()) as app:
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
  )
716
 
717
  # Per-session state
@@ -750,22 +751,22 @@ with gr.Blocks(title="Math Solution Classifier", theme=gr.themes.Soft()) as app:
750
  examples=[
751
  ["John has three apples and Mary has seven, how many apples do they have together?",
752
  "They have 7 + 3 = 11 apples.",
753
- "Computational error"],
754
  ["A rectangle's length is twice its width. If the width is 7 cm, what is the perimeter of the rectangle?",
755
  "The length of the rectangle is 2 * 7 = 14 cm.\n The perimeter is 14 + 7 = 21 cm.\n FINAL ANSWER: 21",
756
- "Conceptual error"],
757
  ["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?",
758
  "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",
759
- "Conceptual error"],
760
  ["What is 15% of 200?",
761
  "15% = 15/100 = 0.15\n0.15 × 200 = 30",
762
  "Correct"],
763
  ["A circle has a radius of 5 cm. Using the approximation pi = 3.14, what is the circumference of the circle?",
764
  "The circumference of the circle is 3.14 * 5 = 15.7 cm.\n FINAL ANSWER: 15.7",
765
- "Conceptual error"],
766
  ["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?",
767
  "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",
768
- "Computational error"],
769
  ["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?",
770
  "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.",
771
  "Correct"]
 
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
 
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 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",
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.",
772
  "Correct"]