This guide walks you through setting up the Python project for the Talk2Note backend application, named OpenAPITestImpl.
cd
command.python3 -m venv venv
(Requires Python 3.x)python -m venv venv
source venv/bin/activate
venv/Scripts/activate
deactivate
It's important to deactivate the virtual environment when you're finished to avoid conflicts with other projects that may have different dependency requirements.
.env
.KEY=VALUE
.
For example: OPENAI_API_KEY=my-special-key
After activating the environment, install the packages listed in the "requirements.txt" file. This file specifies the external libraries your project needs to run.
To install the required packages, run the following command after activating the virtual environment:
python -m pip install -r requirements.txt
To run project need to call main file inside source (/src/main.py)
after activating virtual environment ~
python src/main.py
Project configuration is handled from the OpenAI Roles configuration JSON file located at ${PROJECT_ROOT}/src/data/note-taker.json
.
Make sure to replace ${PROJECT_ROOT}
with the actual root directory of your project.
Congratulations you've completed all requirements. You can now test the project freely !.