This project is a web-based application designed to help users solve academic assignments. The application leverages OCR technology and AI models to process assignment files and generate solutions. The project consists of two main parts: a backend built with Flask and a frontend built with Angular.
-
Navigate to the Backend Folder:
cd AssignmentSolver/AssignmentSolverBackend -
Install Required Packages: Run the following command to install all necessary Python packages:
pip install -r requirements.txt
Note: The installation can be quite large, requiring 5-6 GB of space. If you have a GPU, keep the paddlepaddle-gpu module for accelerated OCR. If not, remove this module from
requirements.txtto save approximately 1.5 GB of space and bandwidth. -
Configure API Key:
In the AssignmentSolverBackend folder, locate the .env file. Add your Google Gemini API key to the .env file. The model used is gemini-1.5-flash.
-
Start the Backend Server: After the installation is complete, start the server:
python Pserver.py
The backend server will run on port 5000.
-
Navigate to the Frontend Folder:
cd AssignmentSolver/Frontend_AssignmentSolver -
Install Angular CLI (if not already installed): Ensure you have Angular CLI version 18 installed:
npm install -g @angular/[email protected]
-
Install Dependencies: Install all the necessary packages:
npm install
Start the Frontend Server:
ng serve
The frontend will run on port 4200.
-
Navigate to the Backend Folder:
cd AssignmentSolver/Backend_Assignment-Solver -
Give Execute Permissions to the Setup Script:
chmod +x Ubuntusetup.sh
-
Configure API Key:
In the AssignmentSolverBackend folder, locate the .env file. Add your Google Gemini API key to the .env file. The model used is gemini-1.5-flash.
-
Run the Setup Script:
./Ubuntusetup.sh
-
Navigate to the Frontend Folder:
cd AssignmentSolver/Frontend_AssignmentSolver -
Install Angular CLI (if not already installed): Ensure you have Angular CLI version 18 installed:
npm install -g @angular/[email protected]
-
Install Dependencies: Install all the necessary packages:
npm install
Note: If you encounter dependency errors on Ubuntu, try using
yarn installinstead:yarn install
-
Start the Frontend Server: After installing dependencies, start the frontend:
ng serve
- Make sure the backend server is running on port 5000.
- Correct syntax in this Markdown file
- Start the frontend server using
ng serve. - Open your browser and go to http://localhost:4200.
The "Additional Information" field in the form is crucial if you want to customize the prompt further. However, be cautious when using it, as incorrect or irrelevant information might alter the output of the solution document.