Upload app.py
Browse files
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.,
|
| 461 |
lines=3,
|
| 462 |
)
|
| 463 |
solution_input = gr.Textbox(
|
| 464 |
label="Proposed Solution",
|
| 465 |
-
placeholder="e.g.,
|
| 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 |
)
|