Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,98 +1,111 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
## Features
|
| 6 |
|
| 7 |
-
- **
|
| 8 |
-
- **
|
| 9 |
-
- **
|
| 10 |
-
- **
|
| 11 |
-
- **
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
###
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
-
|
| 81 |
-
-
|
| 82 |
-
|
| 83 |
-
##
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
-
|
| 87 |
-
-
|
| 88 |
-
-
|
| 89 |
-
- `difficulty_level`: too_easy/appropriate/too_hard/unclear
|
| 90 |
-
- `quality_comment`: Detailed assessment
|
| 91 |
|
| 92 |
## License
|
| 93 |
|
| 94 |
-
|
| 95 |
|
| 96 |
-
##
|
| 97 |
|
| 98 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Math Question Validator
|
| 3 |
+
emoji: ๐งฎ
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Math Question Validator
|
| 14 |
+
|
| 15 |
+
A powerful web-based tool for validating mathematical questions and answers using state-of-the-art AI models.
|
| 16 |
|
| 17 |
## Features
|
| 18 |
|
| 19 |
+
- ๐ **Multiple AI Models**: Support for o3-mini, GPT-5, Claude 4, Grok 4, DeepSeek, and more
|
| 20 |
+
- ๐ **Parallel Processing**: Process hundreds of questions simultaneously
|
| 21 |
+
- ๐ **Detailed Analytics**: Track accuracy, timeouts, and errors in real-time
|
| 22 |
+
- ๐ **LaTeX Reconciliation**: Generate detailed comparison documents for mismatched answers
|
| 23 |
+
- ๐ผ๏ธ **Image Support**: Handle questions with diagrams and figures
|
| 24 |
+
- ๐ **Progress Tracking**: Real-time statistics and progress monitoring
|
| 25 |
+
|
| 26 |
+
## Quick Start
|
| 27 |
+
|
| 28 |
+
1. **Upload your Excel file** containing math questions
|
| 29 |
+
2. **Select models** for solving and reconciliation
|
| 30 |
+
3. **Configure processing** options (parallel processes, batch size)
|
| 31 |
+
4. **Start validation** and monitor progress
|
| 32 |
+
5. **Download results** with detailed analysis
|
| 33 |
+
|
| 34 |
+
## Setting Up API Keys
|
| 35 |
+
|
| 36 |
+
This app requires API keys to function. Add them in the Spaces Settings:
|
| 37 |
+
|
| 38 |
+
1. Go to Settings โ Variables and secrets
|
| 39 |
+
2. Add your API keys:
|
| 40 |
+
- `OPENAI_API_KEY` - For OpenAI models (o3-mini, GPT-5, GPT-4o)
|
| 41 |
+
- `OPENROUTER_API_KEY` - For Claude, Grok, Gemini, and other models
|
| 42 |
+
|
| 43 |
+
## Input Format
|
| 44 |
+
|
| 45 |
+
Your Excel file should have a "Data" sheet with these columns:
|
| 46 |
+
- `question` - The math question text
|
| 47 |
+
- `correct_answer` or `answer` - The reference answer
|
| 48 |
+
- `raw_subject` - Subject classification (optional, for filtering)
|
| 49 |
+
- `file_url` - Image URL if question has a diagram (optional)
|
| 50 |
+
|
| 51 |
+
## Output
|
| 52 |
+
|
| 53 |
+
The validator generates:
|
| 54 |
+
- **Validated Excel file** with model answers and match results
|
| 55 |
+
- **LaTeX reconciliation documents** for mismatched answers
|
| 56 |
+
- **Model answer files** with complete solutions
|
| 57 |
+
- **Statistics summary** with accuracy metrics
|
| 58 |
+
|
| 59 |
+
## Model Recommendations
|
| 60 |
+
|
| 61 |
+
### For Best Accuracy
|
| 62 |
+
- Solver: o3-mini
|
| 63 |
+
- Reconciliation: gpt-4o
|
| 64 |
+
|
| 65 |
+
### For Speed
|
| 66 |
+
- Solver: gpt-4o
|
| 67 |
+
- Reconciliation: gpt-4o
|
| 68 |
+
- Use 4-6 parallel processes
|
| 69 |
+
|
| 70 |
+
### For Cost-Effectiveness
|
| 71 |
+
- Solver: Claude 3.5 Sonnet
|
| 72 |
+
- Reconciliation: Claude 3.5 Sonnet
|
| 73 |
+
|
| 74 |
+
## Advanced Features
|
| 75 |
+
|
| 76 |
+
### Parallel Processing
|
| 77 |
+
- Automatically splits large datasets across multiple processes
|
| 78 |
+
- Merges results seamlessly
|
| 79 |
+
- Optimal for 100+ questions
|
| 80 |
+
|
| 81 |
+
### Custom Ranges
|
| 82 |
+
- Process specific question ranges
|
| 83 |
+
- Useful for testing or resuming interrupted runs
|
| 84 |
+
|
| 85 |
+
### LaTeX Compilation
|
| 86 |
+
- Optional PDF generation from LaTeX reconciliation documents
|
| 87 |
+
- Requires pdflatex (not available in HF Spaces)
|
| 88 |
+
|
| 89 |
+
## Limitations
|
| 90 |
+
|
| 91 |
+
- Maximum file size: 200MB
|
| 92 |
+
- Image support requires URLs (local images not supported in HF Spaces)
|
| 93 |
+
- LaTeX PDF compilation not available (use .tex files locally)
|
| 94 |
+
|
| 95 |
+
## Support
|
| 96 |
+
|
| 97 |
+
For issues or questions:
|
| 98 |
+
- Check the Configuration tab in the app
|
| 99 |
+
- Review error messages in the output log
|
| 100 |
+
- Ensure API keys are correctly set
|
|
|
|
|
|
|
| 101 |
|
| 102 |
## License
|
| 103 |
|
| 104 |
+
MIT License - Free to use and modify
|
| 105 |
|
| 106 |
+
## Credits
|
| 107 |
|
| 108 |
+
Built with:
|
| 109 |
+
- Gradio for the web interface
|
| 110 |
+
- OpenAI, Anthropic, and other AI providers for models
|
| 111 |
+
- pandas for data processing
|