A chatbot implementation for JUNIFEUP training.
- Python 3.13
-
Create a virtual environment:
python3 -m venv .venv
-
Activate the virtual environment:
- On macOS/Linux:
source .venv/bin/activate - On Windows:
.venv\Scripts\activate
- On macOS/Linux:
-
Install dependencies:
pip install -r requirements.txt
-
Set up the environment variables:
- Copy the
.env.examplefile to a new file named.env - Fill in the required environment variables in the
.envfile
cp .env.example .env - Copy the
-
Run the application:
python3 -m main
The application requires access to Google Drive. Follow these steps to set up the required credentials:
- Create a Google Cloud Account (free for this scope)
- Create a new project in the Google Cloud Console
- Navigate to IAM & Admin > Service Accounts
- Create a new service account (no specific role is required)
- Create a key for this service account (JSON format)
- Save the downloaded key file to the
credsfolder in your project
Important: Be cautious about committing credential files to git repositories. The current credentials have limited permissions, but it's generally best practice to exclude them from source control.
- In the Google Cloud Console, navigate to APIs & Services
- Enable the Google Drive API for your project
Share your Google Drive folder with the service account email:
- Service account email:
drive-folder-access@formacao-junifeup.iam.gserviceaccount.com - Ensure the service account has appropriate access permissions to the folder
- Make sure you install ffmpeg with
brew install ffmpeg