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

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -731,7 +731,7 @@ with gr.Blocks(title="Math Solution Classifier", theme=gr.themes.Soft()) as app:
731
  lines=8,
732
  )
733
  expected_label_example = gr.Textbox(
734
- label="Expected Label (examples only)",
735
  visible=False
736
  )
737
  with gr.Row():
@@ -753,22 +753,22 @@ with gr.Blocks(title="Math Solution Classifier", theme=gr.themes.Soft()) as app:
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
- "x"],
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
- "x"],
760
  ["What is 15% of 200?",
761
  "15% = 15/100 = 0.15\n0.15 × 200 = 30",
762
- "x"],
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
- "x"],
766
- ["A bag contains red and blue balls. The ratio of red balls to blue balls is 4:5. If there are 20 blue balls, how many red balls are there?",
767
- "The ratio R/B = 4/5. With B=20, we have R/20 = 4/5.\n Solving for R gives R = (4/5) * 20 = 16 red balls.\n FINAL ANSWER: 16",
768
- "x"],
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
- "x"]
772
  ],
773
  inputs=[question_input, solution_input, expected_label_example],
774
  )
 
731
  lines=8,
732
  )
733
  expected_label_example = gr.Textbox(
734
+ label="Expected Label",
735
  visible=False
736
  )
737
  with gr.Row():
 
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"]
772
  ],
773
  inputs=[question_input, solution_input, expected_label_example],
774
  )