Skip to content

AI-powered web app that solves math problems using ChatGPT API with Python, Flask, and SQLite.

Notifications You must be signed in to change notification settings

DS12rg/AI-Math-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Powered Math Solver Website

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.


Features

  • 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

Setup Instructions

  1. Clone the repository
git clone https://github.com/YOUR_USERNAME/ai-math-solver.git
cd ai-math-solver 
  1. Create and activate a virtual environment
python3 -m venv hello_flask
source hello_flask/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Set up environment variables (for ChatGPT API key)
export OPENAI_API_KEY="your_api_key_here"
  1. Run the application
python app.py
  1. Access the app Open your browser and go to: http://127.0.0.1:5000/

Notes

  • Do not upload your .env file with API keys to GitHub.
  • Tested on Python 3.10+.
  • The project uses a virtual environment for dependency management.

About

AI-powered web app that solves math problems using ChatGPT API with Python, Flask, and SQLite.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published