This is a school project: a web application built using Python (Flask) with a ChatGPT API integration.
Users can solve math problems by typing them in or uploading a photo.
The app provides multiple answer formats (short answer, numerical solution, detailed explanation) and stores previous queries in a local SQLite database.
- Python backend with Flask
- Frontend using HTML, CSS, JavaScript
- ChatGPT API integration for solving math problems
- SQLite database for user query history
- Virtual environment for dependency management
- Clone the repository
git clone https://github.com/YOUR_USERNAME/ai-math-solver.git
cd ai-math-solver - Create and activate a virtual environment
python3 -m venv hello_flask
source hello_flask/bin/activate- Install dependencies
pip install -r requirements.txt- Set up environment variables (for ChatGPT API key)
export OPENAI_API_KEY="your_api_key_here"- Run the application
python app.py- Access the app Open your browser and go to: http://127.0.0.1:5000/
- Do not upload your
.envfile with API keys to GitHub. - Tested on Python 3.10+.
- The project uses a virtual environment for dependency management.