Welcome to TUTOR, your AI-powered educational assistant! This guide will walk you through setting up the project locally on your machine.
- Python Version: 3.9.20
- Operating System: Windows, macOS, or Linux
- Dependencies: Listed in
requirements.txt
- Environment Variables: API keys for integration
- Download Python 3.9.20 from the official Python website.
- Verify installation:
python --version
- Navigate to the Project Directory:
cd path/to/TUTOR
- Create a Virtual Environment:
python -m venv venv
- Activate the Virtual Environment:
- On macOS/Linux:
source venv/bin/activate
- On Windows:
.\venv\Scripts\activate
- On macOS/Linux:
- Verify the virtual environment is active:
which python # macOS/Linux where python # Windows
Ensure pip
is up-to-date and install the required libraries:
pip install --upgrade pip
pip install -r requirements.txt
- Create a
.env
file in the root directory. - Add your API keys:
GOOGLE_API_KEY=your_google_api_key HF_API_KEY=your_huggingface_api_key SECRET_KEY=your_choosing_secret_key_for_flask
- Start the application:
python app.py
- Open your browser and go to: http://127.0.0.1:5000/
- Virtual Environment Not Activating: Verify you're in the project directory.
- Missing Dependencies: Run
pip install -r requirements.txt
again. - API Errors: Ensure your
.env
file is correctly set up.
For further assistance, reach out via GitHub Issues.
Happy Coding! 🚀