This repository contains the code for the AI Lesson Planner project. Below are the steps to set up the environment, install dependencies, and run the project.
Follow these steps to set up the project on your local machine.
First, clone the repository to your local machine using the following command:
git clone https://github.com/shivvamm/Ai-lesson-planner.git
This project uses a Python virtual environment to manage dependencies. You will need to create and activate the virtual environment.
Navigate to the project folder and create a new virtual environment:
cd Ai-lesson-planner
python3 -m venv venv
This will create a folder called venv
where all the dependencies will be installed.
To activate the virtual environment, run:
source venv/bin/activate
venvScriptsactivate
You should now see (venv)
at the beginning of your terminal prompt, indicating that the virtual environment is activated.
With the virtual environment activated, install the required dependencies by running:
pip install -r requirements.txt
This will install all necessary Python packages for the project.
In order to run the project, you need to add the Deep Infra Pi configuration to the config.py
file. Follow these steps:
config.py
file in the app
directory.# config.py
DEEP_INFRA_API_KEY = os.getenv("DEEP_INFRA_API_KEY", "YOUR_API_KEY")
Make sure to replace your_deep_infra_api_key_here
with your actual API key from Deep Infra. You can obtain an API key by signing up at Deep Infra.
Once everything is set up, you can run the project using the following command:
python run.py
This will start the application, and it should now be running with the Deep Infra Pi configuration successfully integrated.
If you encounter any issues, please check the following:
pip install -r requirements.txt
again.config.py
file.deactivate
PyMuPDF
for PDF processing. If you encounter any issues with fitz
or other dependencies, refer to the troubleshooting section or check the related GitHub issues.This project is licensed under the MIT License - see the LICENSE file for details.