mcamargo00 commited on
Commit
5bd7627
·
verified ·
1 Parent(s): 9841add

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -457,12 +457,12 @@ with gr.Blocks(title="Math Solution Classifier", theme=gr.themes.Soft()) as app:
457
  with gr.Column(scale=1):
458
  question_input = gr.Textbox(
459
  label="Math Question",
460
- placeholder="e.g., Solve for x: 2x + 5 = 13",
461
  lines=3,
462
  )
463
  solution_input = gr.Textbox(
464
  label="Proposed Solution",
465
- placeholder="e.g., 2x + 5 = 13\n2x = 13 - 5\n2x = 8\nx = 4",
466
  lines=8,
467
  )
468
  with gr.Row():
@@ -484,6 +484,8 @@ with gr.Blocks(title="Math Solution Classifier", theme=gr.themes.Soft()) as app:
484
  "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"],
485
  ["What is 15% of 200?",
486
  "15% = 15/100 = 0.15\n0.15 × 200 = 30"],
 
 
487
  ],
488
  inputs=[question_input, solution_input],
489
  )
 
457
  with gr.Column(scale=1):
458
  question_input = gr.Textbox(
459
  label="Math Question",
460
+ placeholder="e.g., What is 15 divided by 3?",
461
  lines=3,
462
  )
463
  solution_input = gr.Textbox(
464
  label="Proposed Solution",
465
+ placeholder="e.g.,15/3 = 7",
466
  lines=8,
467
  )
468
  with gr.Row():
 
484
  "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"],
485
  ["What is 15% of 200?",
486
  "15% = 15/100 = 0.15\n0.15 × 200 = 30"],
487
+ ["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?",
488
+ "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."]
489
  ],
490
  inputs=[question_input, solution_input],
491
  )