The MathGPT is a web application built with Streamlit that allows users to input mathematical problems and receive solutions. The app supports both text and LaTeX input, making it versatile for various mathematical expressions. Users can also visualize functions and access a history of their solved problems.
- Upload File: Upload images or PDF files.
- Select OR Draw: Draw a box around the text or equation you want to OCR.
- Input Methods: Choose between text input and LaTeX input for entering mathematical problems.
- Math Keyboard: A user-friendly math keyboard for easy symbol insertion.
- Problem Solving: Click "Solve" to get solutions for your math problems.
- Function Plotting: Visualize mathematical functions with the "Plot Function" feature.
- History Tracking: Keep track of previously solved problems.
- Step-by-Step Explanations: Get detailed explanations for solutions.
To run this application locally, follow these steps:
-
Clone the repository:
git clone https://github.com/codewithdark-git/MathGPT.git cd MathGPT
-
Create a virtual environment (optional but recommended):
python -m venv venv venv\Scripts\activate
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
streamlit run app.py
- Open the app: After running the application, it will open in your default web browser.
- Upload File: After the model loads, upload an image or a PDF.
- Select OR Draw: Draw a box around the equation or text you want to OCR by clicking and dragging.
- Input your problem: Use the "Text Input" or "LaTeX Input" tabs to enter your mathematical problem.
- Use the Math Keyboard: Click on symbols to insert them into your input.
- Solve or Plot: Click "Solve" to get the solution or "Plot Function" to visualize the function.
- View History: Access the "Problem History" section to see previously solved problems.
We appreciate your feedback! Use the feedback section in the sidebar to share your thoughts or report issues.
This project is licensed under the MIT License. See the LICENSE file for details.
- Streamlit for the framework.
- latex2mathml for LaTeX rendering.
- Pandas for data manipulation.
- Pillow for image processing.
- Texify for image and PDF Processing