https://github.com/dkealvaro/gpt-primavera
Using GPT models to solve "Concurso de Primavera" mathematics exams from 2002 to 2023
https://github.com/dkealvaro/gpt-primavera
exam math-solver mathematics openai python
Last synced: 4 months ago
JSON representation
Using GPT models to solve "Concurso de Primavera" mathematics exams from 2002 to 2023
- Host: GitHub
- URL: https://github.com/dkealvaro/gpt-primavera
- Owner: DKeAlvaro
- Created: 2025-01-26T16:27:07.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-26T18:09:28.000Z (9 months ago)
- Last Synced: 2025-03-02T01:37:01.967Z (8 months ago)
- Topics: exam, math-solver, mathematics, openai, python
- Language: Python
- Homepage:
- Size: 7.08 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GPT-Primavera

![]()
An automated solver for Concurso Primavera mathematics exams using GPT models. This project downloads exam papers from concursoprimavera.es, processes them, and solves them using OpenAI's GPT models.
## Demo
https://github.com/user-attachments/assets/29a7f3ca-f3e6-4b95-b0d5-444be4a1904c
## Setup
1. Clone the repository:
```bash
git clone https://github.com/yourusername/GPT-Primavera.git
cd GPT-Primavera
```2. Create a `.env` file in the root directory and add your OpenAI API key:
```
OPENAI_API_KEY="your_api_key_here" (with quotes)
```3. Install dependencies:
```bash
pip install -r requirements.txt
```## Configuration
You can change the GPT model by modifying the `MODEL` variable in `src/config.py`
## Usage
Run the main script to process and solve all exams:
```bash
python main.py
```This will:
1. Download exam papers and solutions
2. Process and solve the exams
3. Generate statistics